src/HOL/Import/import_rule.ML
changeset 69829 3bfa28b3a5b2
parent 69597 ff784d5a5bfb
child 70303 502749883f53
--- a/src/HOL/Import/import_rule.ML	Thu Feb 21 09:15:06 2019 +0000
+++ b/src/HOL/Import/import_rule.ML	Thu Feb 21 09:15:07 2019 +0000
@@ -223,9 +223,10 @@
       Abs_name = Binding.name abs_name,
       type_definition_name = Binding.name ("type_definition_" ^ tycname)}
     val ((_, typedef_info), thy') =
-     Typedef.add_typedef_global {overloaded = false}
+     Named_Target.theory_map_result (apsnd o Typedef.transform_info)
+     (Typedef.add_typedef {overloaded = false}
        (Binding.name tycname, map (rpair dummyS) tnames, NoSyn) c
-       (SOME typedef_bindings) (fn ctxt => resolve_tac ctxt [th2] 1) thy
+       (SOME typedef_bindings) (fn ctxt => resolve_tac ctxt [th2] 1)) thy
     val aty = #abs_type (#1 typedef_info)
     val th = freezeT thy' (#type_definition (#2 typedef_info))
     val (th_s, _) = Thm.dest_comb (Thm.dest_arg (Thm.cprop_of th))