Debian Codegraph @

test-suite/output/bug_12908.v

raw
1 Definition mult' m n := 2 * m * n.
2
3 Module A.
4 (* Test hiding of a scoped notation by a lonely notation *)
5 Infix "*" := mult'.
6 Check forall m n, mult' m n = Nat.mul (Nat.mul 2 m) n.
7 End A.
8
9 Module B.
10 (* Test that an overridden scoped notation is deactivated *)
11 Infix "*" := mult' : nat_scope.
12 Check forall m n, mult' m n = Nat.mul (Nat.mul 2 m) n.
13 End B.