aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/7462.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/7462.v b/test-suite/bugs/closed/7462.v
index 37af64caa..40ca39e38 100644
--- a/test-suite/bugs/closed/7462.v
+++ b/test-suite/bugs/closed/7462.v
@@ -4,3 +4,10 @@
Notation "$ x" := (@id nat x) (only parsing, at level 0).
Notation "$ x" := (@id bool x) (only printing, at level 0).
Check $1. (* Was: Error: Unknown interpretation for notation "$ _". *)
+
+(* Adding an only-printing notation should not let believe
+ that a parsing rule has been given *)
+
+Notation "$ x" := (@id bool x) (only printing, at level 0).
+Notation "$ x" := (@id nat x) (only parsing, at level 0).
+Check $1. (* Was: Error: Syntax Error: Lexer: Undefined token *)