Debian Codegraph @

test-suite/output/NotationsScope.v

raw
1 (* Check notations scopes for terms % and %_ *)
2
3 Declare Scope A_scope.
4 Declare Scope B_scope.
5 Delimit Scope B_scope with B.
6
7 Variant t := T.
8 Definition f1 (x y : t) := x.
9 Definition f2 (x y : t) := y.
10
11 Notation "x * y" := (f1 x y) : A_scope.
12 Notation "x * y" := (f2 x y) : B_scope.
13
14 Set Printing All.
15
16 Local Open Scope A_scope.
17
18 Check T * T * T.
19 Check (T * T * T)%B.
20 Check (T * T * T)%_B.