aboutsummaryrefslogtreecommitdiff
path: root/test-suite/output/bug_12908.v
blob: 7ab218a27ac5f42eea8c6778fed0c3976b5fa25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Definition mult' m n := 2 * m * n.

Module A.
(* Test hiding of a scoped notation by a lonely notation *)
Infix "*" := mult'.
Check forall m n, mult' m n = Nat.mul (Nat.mul 2 m) n.
End A.

Module B.
(* Test that an overridden scoped notation is deactivated *)
Infix "*" := mult' : nat_scope.
Check forall m n, mult' m n = Nat.mul (Nat.mul 2 m) n.
End B.