more precise exception handler
authorhaftmann
Wed, 24 Feb 2010 14:19:54 +0100
changeset 35370 997a23ae1aa0
parent 35369 e4a7947e02b8
child 35371 6c92eb394e3c
more precise exception handler
src/Pure/Isar/code.ML
--- a/src/Pure/Isar/code.ML	Wed Feb 24 14:19:53 2010 +0100
+++ b/src/Pure/Isar/code.ML	Wed Feb 24 14:19:54 2010 +0100
@@ -420,7 +420,7 @@
      of Type ("fun", [ty, ty_abs]) => (ty, ty_abs)
       | _ => error ("Not a datatype abstractor:\n" ^ string_of_const thy abs
           ^ " :: " ^ string_of_typ thy ty');
-    val _ = Thm.cterm_of thy (Const (rep, ty_abs --> ty)) handle CTERM _ =>
+    val _ = Thm.cterm_of thy (Const (rep, ty_abs --> ty)) handle TYPE _ =>
       error ("Not a projection:\n" ^ string_of_const thy rep);
     val cert = Logic.mk_equals (Const (abs, ty --> ty_abs) $ (Const (rep, ty_abs --> ty)
       $ Free ("x", ty_abs)), Free ("x", ty_abs));