src/HOL/Tools/record.ML
changeset 69829 3bfa28b3a5b2
parent 69593 3dda49e08b9d
child 69992 bd3c10813cc4
--- a/src/HOL/Tools/record.ML	Thu Feb 21 09:15:06 2019 +0000
+++ b/src/HOL/Tools/record.ML	Thu Feb 21 09:15:07 2019 +0000
@@ -102,8 +102,9 @@
     val vs = map (Proof_Context.check_tfree ctxt) raw_vs;
   in
     thy
-    |> Typedef.add_typedef_global overloaded (raw_tyco, vs, NoSyn)
-        (HOLogic.mk_UNIV repT) NONE (fn ctxt' => resolve_tac ctxt' [UNIV_witness] 1)
+    |> Named_Target.theory_map_result (apsnd o Typedef.transform_info)
+        (Typedef.add_typedef overloaded (raw_tyco, vs, NoSyn)
+          (HOLogic.mk_UNIV repT) NONE (fn ctxt' => resolve_tac ctxt' [UNIV_witness] 1))
     |-> (fn (tyco, info) => get_typedef_info tyco vs info)
   end;