src/HOL/Tools/primrec.ML
changeset 33037 b22e44496dc2
parent 31902 862ae16a799d
child 33038 8f9594c31de4
     1.1 --- a/src/HOL/Tools/primrec.ML	Tue Oct 20 13:37:56 2009 +0200
     1.2 +++ b/src/HOL/Tools/primrec.ML	Tue Oct 20 16:13:01 2009 +0200
     1.3 @@ -208,7 +208,7 @@
     1.4        (case Symtab.lookup dt_info tname of
     1.5            NONE => primrec_error (quote tname ^ " is not a datatype")
     1.6          | SOME dt =>
     1.7 -            if tnames' subset (map (#1 o snd) (#descr dt)) then
     1.8 +            if gen_subset (op =) (tnames', map (#1 o snd) (#descr dt)) then
     1.9                (tname, dt)::(find_dts dt_info tnames' tnames)
    1.10              else find_dts dt_info tnames' tnames);
    1.11