attach modifier only later, to avoid interference as e.g. in "simp add: foo [simplified] bar";
authorwenzelm
Fri, 22 Aug 2014 15:55:24 +0200
changeset 58034 07b5373955db
parent 58033 154ae20ead35
child 58035 177eeda93a8c
attach modifier only later, to avoid interference as e.g. in "simp add: foo [simplified] bar";
src/Pure/Isar/method.ML
--- a/src/Pure/Isar/method.ML	Fri Aug 22 15:39:30 2014 +0200
+++ b/src/Pure/Isar/method.ML	Fri Aug 22 15:55:24 2014 +0200
@@ -474,8 +474,8 @@
             | _ =>
                 let
                   val facts =
-                    Attrib.partial_evaluation ctxt
-                      [((Binding.empty, [Attrib.internal (K att)]), thms)];
+                    Attrib.partial_evaluation ctxt [((Binding.name "dummy", []), thms)]
+                    |> map (fn (_, bs) => ((Binding.empty, [Attrib.internal (K att)]), bs));
                   fun decl phi =
                     Context.mapping I init #>
                     Attrib.generic_notes "" (Attrib.transform_facts phi facts) #> snd;