src/Pure/Isar/isar_syn.ML
changeset 48792 4aa5b965f70e
parent 48646 91281e9472d8
child 48881 46e053eda5dd
--- a/src/Pure/Isar/isar_syn.ML	Tue Aug 14 11:37:58 2012 +0200
+++ b/src/Pure/Isar/isar_syn.ML	Tue Aug 14 11:43:08 2012 +0200
@@ -902,7 +902,8 @@
 
 val _ =
   Outer_Syntax.improper_command @{command_spec "typ"} "read and print type"
-    (opt_modes -- Parse.typ >> (Toplevel.no_timing oo Isar_Cmd.print_type));
+    (opt_modes -- (Parse.typ -- Scan.option (@{keyword "::"} |-- Parse.!!! Parse.sort))
+      >> (Toplevel.no_timing oo Isar_Cmd.print_type));
 
 val _ =
   Outer_Syntax.improper_command @{command_spec "print_codesetup"} "print code generator setup"