Debian Codegraph @

test-suite/output/bug_18223.v

raw
1 Declare Custom Entry foo.
2 Declare Custom Entry bar.
3
4 Parameter (A : Type).
5 Parameter (Q : A -> A -> A).
6 Parameter (P : A -> A).
7
8 Notation "< x >" := (P x) (x custom foo).
9 Notation "x y" := (Q x y) (in custom bar at level 1, right associativity).
10 Notation "x" := x (in custom bar at level 0, x global).
11
12 Module Order1.
13 Notation "| x |" := (x) (x custom bar).
14 Notation "{ x }" := (x) (in custom foo, x constr).
15 Check (fun a b => < {Q b a} >).
16 End Order1.
17
18 Module Order2.
19 Notation "{ x }" := (x) (in custom foo, x constr).
20 Notation "| x |" := (x) (x custom bar).
21 Check (fun a b => < {Q b a} >).
22 End Order2.