Debian Codegraph @

test-suite/bugs/bug_11121.v

raw
1 Declare Custom Entry example.
2
3 Module M1.
4 Fixpoint stupid (x : nat) : nat := 1.
5 Reserved Notation " x '==' 1 " (in custom example at level 0, x constr).
6 Notation " x '==' 1" := (stupid x) (in custom example).
7 End M1.
8
9 Module M2.
10 Fixpoint stupid (x : nat) : nat := 1.
11 Notation " x '==' 1" := (stupid x) (in custom example at level 0).
12 Fail Notation " x '==' 1" := (stupid x) (in custom example at level 1).
13 End M2.
14
15 Module M3.
16 Reserved Notation " x '==' 1 " (in custom example at level 55, x constr).
17
18 Fixpoint stupid (x : nat) : nat := 1
19 where " x '==' 1" := (stupid x) (in custom example).
20
21 End M3.