diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2018-05-10 15:04:13 +0200 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2018-05-10 15:53:06 +0200 |
commit | 0acaa906367c02c57a6d70dd5d19eaea884b7568 (patch) | |
tree | 12cf860589f0d32db04610771752d6022a0c01d9 /test-suite/bugs | |
parent | dfa99b152114271cf9fac4cab9d8663ac6ec078c (diff) |
Fixes #7462, part 2 (only-printing not make believe parsing rule is declared).
Diffstat (limited to 'test-suite/bugs')
-rw-r--r-- | test-suite/bugs/closed/7462.v | 7 |
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 *) |