src/Pure/Isar/expression.ML
changeset 29247 95d3a82857e5
parent 29217 a1c992fb3184
child 29248 f1f1bccf2fc5
--- a/src/Pure/Isar/expression.ML	Tue Dec 16 21:11:39 2008 +0100
+++ b/src/Pure/Isar/expression.ML	Thu Dec 18 11:16:48 2008 +0100
@@ -522,7 +522,8 @@
 
     val export = Variable.export_morphism goal_ctxt context;
     val exp_fact = Drule.zero_var_indexes_list o map Thm.strip_shyps o Morphism.fact export;
-    val exp_term = Drule.term_rule thy (singleton exp_fact);
+    val thy_ref = Theory.check_thy thy; (* FIXME!!*)
+    val exp_term = (fn t => Drule.term_rule (Theory.deref thy_ref) (singleton exp_fact) t);
     val exp_typ = Logic.type_map exp_term;
     val export' =
       Morphism.morphism {binding = I, var = I, typ = exp_typ, term = exp_term, fact = exp_fact};