src/HOL/Tools/Function/function_lib.ML
changeset 74526 bbfed17243af
parent 74525 c960bfcb91db
child 74530 823ccd84b879
--- a/src/HOL/Tools/Function/function_lib.ML	Fri Oct 15 19:25:31 2021 +0200
+++ b/src/HOL/Tools/Function/function_lib.ML	Fri Oct 15 20:54:13 2021 +0200
@@ -123,8 +123,8 @@
           else if null js
             then mk (foldr1 mk (map (nth xs) is), Const (neu, ty))
             else mk (foldr1 mk (map (nth xs) is), foldr1 mk (map (nth xs) js)))))
-     (K (rewrite_goals_tac ctxt ac
-         THEN resolve_tac ctxt [Drule.reflexive_thm] 1))
+     (fn {context = goal_ctxt, ...} =>
+       rewrite_goals_tac goal_ctxt ac THEN resolve_tac goal_ctxt [Drule.reflexive_thm] 1)
  end
 
 (* instance for unions *)