merged
authorhaftmann
Mon, 20 Sep 2010 11:55:36 +0200
changeset 39553 9d75d65a1a7a
parent 39551 92a6ec7464e4 (current diff)
parent 39552 d154f988c247 (diff)
child 39554 386576a416ea
merged
--- a/src/Pure/Isar/code.ML	Mon Sep 20 11:51:46 2010 +0200
+++ b/src/Pure/Isar/code.ML	Mon Sep 20 11:55:36 2010 +0200
@@ -543,7 +543,8 @@
       handle TERM _ => bad "Not an abstract equation";
     val (rep_const, ty) = dest_Const rep;
     val (tyco, sorts) = ((apsnd o map) (snd o dest_TVar) o dest_Type o domain_type) ty
-      handle TERM _ => bad "Not an abstract equation";
+      handle TERM _ => bad "Not an abstract equation"
+           | TYPE _ => bad "Not an abstract equation";
     val _ = case some_tyco of SOME tyco' => if tyco = tyco' then ()
           else bad ("Abstract type mismatch:" ^ quote tyco ^ " vs. " ^ quote tyco')
       | NONE => ();