src/Pure/Isar/local_theory.ML
changeset 50741 20e6e1a92e54
parent 50739 5165d7e6d3b9
child 51735 f069c7d496ca
--- a/src/Pure/Isar/local_theory.ML	Sat Jan 05 18:36:02 2013 +0100
+++ b/src/Pure/Isar/local_theory.ML	Sat Jan 05 18:42:29 2013 +0100
@@ -256,13 +256,17 @@
 (* notation *)
 
 fun type_notation add mode raw_args lthy =
-  let val args = map (apfst (Morphism.typ (target_morphism lthy))) raw_args in
+  let
+    val args = map (apfst (Logic.type_map (Assumption.export_term lthy (target_of lthy)))) raw_args;
+  in
     declaration {syntax = true, pervasive = false}
       (Proof_Context.generic_type_notation add mode args) lthy
   end;
 
 fun notation add mode raw_args lthy =
-  let val args = map (apfst (Morphism.term (target_morphism lthy))) raw_args in
+  let
+    val args = map (apfst (Assumption.export_term lthy (target_of lthy))) raw_args
+  in
     declaration {syntax = true, pervasive = false}
       (Proof_Context.generic_notation add mode args) lthy
   end;