Debian Codegraph @

test-suite/bugs/bug_7462.v

raw
1 (* Adding an only-printing notation should not override existing
2 interpretations for the same notation. *)
3
4 Notation "$ x" := (@id nat x) (only parsing, at level 1).
5 Notation "$ x" := (@id bool x) (only printing, at level 1).
6 Check $1. (* Was: Error: Unknown interpretation for notation "$ _". *)
7
8 (* Adding an only-printing notation should not let believe
9 that a parsing rule has been given *)
10
11 Notation "$ x" := (@id bool x) (only printing, at level 1).
12 Notation "$ x" := (@id nat x) (only parsing, at level 1).
13 Check $1. (* Was: Error: Syntax Error: Lexer: Undefined token *)