abbrev: be permissive after transformation;
authorwenzelm
Wed, 28 Feb 2007 22:05:46 +0100
changeset 22380 7635e59e3125
parent 22379 abfcb9899d41
child 22381 cb145d434284
abbrev: be permissive after transformation;
src/Pure/Isar/theory_target.ML
--- a/src/Pure/Isar/theory_target.ML	Wed Feb 28 22:05:44 2007 +0100
+++ b/src/Pure/Isar/theory_target.ML	Wed Feb 28 22:05:46 2007 +0100
@@ -57,7 +57,8 @@
 (* consts *)
 
 fun internal_abbrev prmode ((c, mx), t) =
-  LocalTheory.term_syntax (ProofContext.target_abbrev prmode ((c, mx), t)) #>
+  (* FIXME really permissive *)
+  LocalTheory.term_syntax (perhaps o try o ProofContext.target_abbrev prmode ((c, mx), t)) #>
   ProofContext.add_abbrev Syntax.internalM (c, t) #> snd;
 
 fun consts is_loc some_class depends decls lthy =