src/HOL/Tools/old_primrec.ML
changeset 31784 bd3486c57ba3
parent 31737 b3f63611784e
child 31902 862ae16a799d
     1.1 --- a/src/HOL/Tools/old_primrec.ML	Tue Jun 23 15:32:34 2009 +0200
     1.2 +++ b/src/HOL/Tools/old_primrec.ML	Tue Jun 23 16:27:12 2009 +0200
     1.3 @@ -246,7 +246,7 @@
     1.4  fun gen_primrec_i note def alt_name eqns_atts thy =
     1.5    let
     1.6      val (eqns, atts) = split_list eqns_atts;
     1.7 -    val dt_info = Datatype.get_datatypes thy;
     1.8 +    val dt_info = Datatype.get_all thy;
     1.9      val rec_eqns = fold_rev (process_eqn thy o snd) eqns [] ;
    1.10      val tnames = distinct (op =) (map (#1 o snd) rec_eqns);
    1.11      val dts = find_dts dt_info tnames tnames;