Debian Codegraph @

test-suite/output/bug_6764.v

raw
1 Module A.
2 Set Primitive Projections.
3 Record foo := Foo { foo_n : nat }.
4 Notation "'■' x" := (foo_n x) (at level 50).
5 Check forall (f:foo), ■ f = ■ f.
6 End A.
7
8 Module A'.
9 Set Primitive Projections.
10 Record foo := Foo { foo_n : nat }.
11 Notation "'■' x" := x.(foo_n) (at level 50).
12 Check forall (f:foo), ■ f = ■ f.
13 End A'.
14
15 (* Variant with non-primitive projections *)
16
17 Module B.
18 Record T := {a:nat}.
19 Notation "%% x" := (a x) (at level 2, x at level 2).
20 Check fun x => %%x.
21 End B.
22
23 Module B'.
24 Record T := {a:nat}.
25 Notation "%% x" := x.(a) (at level 2, x at level 2).
26 Check fun x => %%x.
27 End B'.