From dffe222e9d84c423a3e3c1e9b36d36a37727dc7b Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Sun, 30 Aug 2020 06:49:22 +0200 Subject: Fixes part 1 of #12908 (collision involving a lonely notation). Strangely, this was not yet noticed. Hiding of a scoped notation by a lonely notation should be checked at printing time. --- test-suite/output/bug_12908.out | 2 ++ test-suite/output/bug_12908.v | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 test-suite/output/bug_12908.out create mode 100644 test-suite/output/bug_12908.v (limited to 'test-suite') diff --git a/test-suite/output/bug_12908.out b/test-suite/output/bug_12908.out new file mode 100644 index 0000000000..fca6dde704 --- /dev/null +++ b/test-suite/output/bug_12908.out @@ -0,0 +1,2 @@ +forall m n : nat, m * n = (2 * m * n)%nat + : Prop diff --git a/test-suite/output/bug_12908.v b/test-suite/output/bug_12908.v new file mode 100644 index 0000000000..558c9f9f6a --- /dev/null +++ b/test-suite/output/bug_12908.v @@ -0,0 +1,6 @@ +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. -- cgit v1.2.3