src/Pure/Proof/extraction.ML
changeset 62958 b41c1cb5e251
parent 62922 96691631c1eb
child 63239 d562c9948dee
--- a/src/Pure/Proof/extraction.ML	Tue Apr 12 13:49:37 2016 +0200
+++ b/src/Pure/Proof/extraction.ML	Tue Apr 12 14:38:57 2016 +0200
@@ -167,8 +167,9 @@
 fun read_term ctxt T s =
   let
     val ctxt' = ctxt
-      |> Config.put Type_Infer_Context.const_sorts false
-      |> Proof_Context.set_defsort [];
+      |> Proof_Context.set_defsort []
+      |> Config.put Type_Infer.object_logic false
+      |> Config.put Type_Infer_Context.const_sorts false;
     val parse = if T = propT then Syntax.parse_prop else Syntax.parse_term;
   in parse ctxt' s |> Type.constraint T |> Syntax.check_term ctxt' end;