--- a/src/HOL/Tools/function_package/pattern_split.ML Sun Nov 11 16:58:41 2007 +0100
+++ b/src/HOL/Tools/function_package/pattern_split.ML Sun Nov 11 17:18:38 2007 +0100
@@ -42,7 +42,7 @@
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 (DatatypePackage.get_datatype_constrs thy name))
- | inst_constrs_of thy t = (print t; sys_error "inst_constrs_of")
+ | inst_constrs_of thy T = raise TYPE ("inst_constrs_of", [T], [])