read_const: disallow internal names as usual in visible Isar text;
authorwenzelm
Thu, 29 Apr 2010 22:08:57 +0200
changeset 36542 7cb6b40d19b2
parent 36541 de1862c4a308
child 36543 0e7fc5bf38de
read_const: disallow internal names as usual in visible Isar text;
src/Pure/Isar/proof_context.ML
--- a/src/Pure/Isar/proof_context.ML	Thu Apr 29 21:05:54 2010 +0200
+++ b/src/Pure/Isar/proof_context.ML	Thu Apr 29 22:08:57 2010 +0200
@@ -505,7 +505,10 @@
 fun read_const_proper ctxt strict = prep_const_proper ctxt strict o token_content;
 
 fun read_const ctxt strict ty text =
-  let val (c, pos) = token_content text in
+  let
+    val (c, pos) = token_content text;
+    val _ = no_skolem false c;
+  in
     (case (lookup_skolem ctxt c, Variable.is_const ctxt c) of
       (SOME x, false) =>
         (Position.report (Markup.name x