diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2018-05-10 14:57:00 +0200 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2018-05-10 15:19:06 +0200 |
commit | dfa99b152114271cf9fac4cab9d8663ac6ec078c (patch) | |
tree | 80e8af6b339a263580cf1ad4c70c0e3269b4f89c /test-suite/bugs/closed/7462.v | |
parent | e559f7553030dc3a86936794d0f80f39b0131960 (diff) |
Fixes part 1 of #7462 (only-printing not to override existing interp rule).
Diffstat (limited to 'test-suite/bugs/closed/7462.v')
-rw-r--r-- | test-suite/bugs/closed/7462.v | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/7462.v b/test-suite/bugs/closed/7462.v new file mode 100644 index 000000000..37af64caa --- /dev/null +++ b/test-suite/bugs/closed/7462.v @@ -0,0 +1,6 @@ +(* 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 "$ _". *) |