src/HOL/Tools/Datatype/datatype_codegen.ML
changeset 36610 bafd82950e24
parent 36298 2d55c4aba1dc
child 36692 54b64d4ad524
--- a/src/HOL/Tools/Datatype/datatype_codegen.ML	Mon May 03 07:59:51 2010 +0200
+++ b/src/HOL/Tools/Datatype/datatype_codegen.ML	Mon May 03 14:25:56 2010 +0200
@@ -100,7 +100,7 @@
         val def' = Syntax.check_term lthy def;
         val ((_, (_, thm)), lthy') = Specification.definition
           (NONE, (Attrib.empty_binding, def')) lthy;
-        val ctxt_thy = ProofContext.init (ProofContext.theory_of lthy);
+        val ctxt_thy = ProofContext.init_global (ProofContext.theory_of lthy);
         val thm' = singleton (ProofContext.export lthy' ctxt_thy) thm;
       in (thm', lthy') end;
     fun tac thms = Class.intro_classes_tac []