src/Provers/classical.ML
changeset 46874 993c413746f4
parent 46459 73823dbbecc4
child 46961 5c6955f487e5
--- a/src/Provers/classical.ML	Mon Mar 12 13:53:26 2012 +0100
+++ b/src/Provers/classical.ML	Mon Mar 12 15:31:30 2012 +0100
@@ -301,9 +301,9 @@
     error ("Ill-formed destruction rule\n" ^ string_of_thm context th)
   else Tactic.make_elim th;
 
-fun warn_thm context msg th =
-  if (case context of SOME (Context.Proof ctxt) => Context_Position.is_visible ctxt | _ => false)
-  then warning (msg ^ string_of_thm context th)
+fun warn_thm opt_context msg th =
+  if (case opt_context of SOME context => Context_Position.is_visible_proof context | NONE => false)
+  then warning (msg ^ string_of_thm opt_context th)
   else ();
 
 fun warn_rules context msg rules th =