aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Laporte2019-04-29 09:50:26 +0000
committerVincent Laporte2019-04-29 10:02:49 +0000
commita3c03857991f3f0d84edb109aaa68a03753699a6 (patch)
tree81b97d014a1a2d17d9e2cb1c935c0e5a4f984791
parent0e35f5f41b185309cbec3670ec8cfa8526e5fecf (diff)
Test-suite: add a case for issue #9180
-rw-r--r--test-suite/output/bug_9180.out4
-rw-r--r--test-suite/output/bug_9180.v11
2 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/output/bug_9180.out b/test-suite/output/bug_9180.out
new file mode 100644
index 0000000000..ed4892b389
--- /dev/null
+++ b/test-suite/output/bug_9180.out
@@ -0,0 +1,4 @@
+Notation
+"n .+1" := S n : nat_scope (default interpretation)
+forall x : nat, x.+1 = x.+1
+ : Prop
diff --git a/test-suite/output/bug_9180.v b/test-suite/output/bug_9180.v
new file mode 100644
index 0000000000..f221a94a50
--- /dev/null
+++ b/test-suite/output/bug_9180.v
@@ -0,0 +1,11 @@
+Notation succn := (Datatypes.S).
+
+Notation "n .+1" := (succn n) (at level 2, left associativity,
+ format "n .+1") : nat_scope.
+
+Locate ".+1".
+(* Notation *)
+(* "n .+1" := S n : nat_scope (default interpretation) *)
+(** so Coq does not apply succn notation *)
+
+Check forall x : nat, x.+1 = x.+1.