src/Pure/Thy/thm_database.ML
changeset 7738 e17ccb79db68
parent 7609 1acbed762fc6
child 7854 fe7b7e3c3ddc
--- a/src/Pure/Thy/thm_database.ML	Tue Oct 05 15:42:44 1999 +0200
+++ b/src/Pure/Thy/thm_database.ML	Tue Oct 05 16:55:13 1999 +0200
@@ -71,13 +71,13 @@
 fun ml_store_thm (name, thm) =
   let val thm' = store_thm (name, thm) in
     if warn_ml name then ()
-    else (qed_thms := [thm]; use_text true ("val " ^ name ^ " = hd (! ThmDatabase.qed_thms);"))
+    else (qed_thms := [thm']; use_text true ("val " ^ name ^ " = hd (! ThmDatabase.qed_thms);"))
   end;
 
 fun ml_store_thms (name, thms) =
   let val thms' = store_thms (name, thms) in
     if warn_ml name then ()
-    else (qed_thms := thms; use_text true ("val " ^ name ^ " = ! ThmDatabase.qed_thms;"))
+    else (qed_thms := thms'; use_text true ("val " ^ name ^ " = ! ThmDatabase.qed_thms;"))
   end;
 
 fun bind_thm (name, thm) = ml_store_thm (name, standard thm);