src/HOL/Tools/Function/pattern_split.ML
changeset 31784 bd3486c57ba3
parent 31775 2b04504fcb69
child 32035 8e77b6a250d5
--- a/src/HOL/Tools/Function/pattern_split.ML	Tue Jun 23 15:32:34 2009 +0200
+++ b/src/HOL/Tools/Function/pattern_split.ML	Tue Jun 23 16:27:12 2009 +0200
@@ -40,7 +40,7 @@
 (* This is copied from "fundef_datatype.ML" *)
 fun inst_constrs_of thy (T as Type (name, _)) =
     map (fn (Cn,CT) => Envir.subst_TVars (Sign.typ_match thy (body_type CT, T) Vartab.empty) (Const (Cn, CT)))
-        (the (Datatype.get_datatype_constrs thy name))
+        (the (Datatype.get_constrs thy name))
   | inst_constrs_of thy T = raise TYPE ("inst_constrs_of", [T], [])