diff options
| author | Emilio Jesus Gallego Arias | 2018-05-13 05:40:38 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2018-05-13 05:40:38 +0200 |
| commit | 12109393c957ef64f7dc8d47b745a75392e4382c (patch) | |
| tree | 56330b40a2fddf72da5e2c59448dd9f9b3b68236 /test-suite | |
| parent | 7fdb5e5f0ee0f22c1de4e4a07efc41121103b10f (diff) | |
| parent | f20a053364421c6f5691bb02c9015a9db5cbfafe (diff) | |
Merge PR #7477: Support for notations with autonomous only-parsing and only-printing declarations.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/7462.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/7462.v b/test-suite/bugs/closed/7462.v new file mode 100644 index 0000000000..40ca39e38a --- /dev/null +++ b/test-suite/bugs/closed/7462.v @@ -0,0 +1,13 @@ +(* Adding an only-printing notation should not override existing + interpretations for the same notation. *) + +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 *) |
