src/Pure/Isar/code.ML
changeset 39552 d154f988c247
parent 39397 9b0a8d72edc8
child 39568 839a0446630b
--- a/src/Pure/Isar/code.ML	Mon Sep 20 09:19:22 2010 +0200
+++ b/src/Pure/Isar/code.ML	Mon Sep 20 11:55:21 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 => ();