summaryrefslogtreecommitdiff
path: root/test-suite/success/Mod_type.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/success/Mod_type.v')
-rw-r--r--test-suite/success/Mod_type.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/success/Mod_type.v b/test-suite/success/Mod_type.v
index b847833f..d5e1a38c 100644
--- a/test-suite/success/Mod_type.v
+++ b/test-suite/success/Mod_type.v
@@ -17,3 +17,15 @@ Module Bar : BAR.
Module Foo := Fu.
End Bar.
+
+(* Check bug #2809: correct printing of modules with notations *)
+
+Module C.
+ Inductive test : Type :=
+ | c1 : test
+ | c2 : nat -> test.
+
+ Notation "! x" := (c2 x) (at level 50).
+End C.
+
+Print C. (* Should print test_rect without failing *)