aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2019-11-14 08:52:01 +0100
committerHugo Herbelin2020-02-22 22:37:41 +0100
commit04b9870f0ebe79fde789551c8e172aad1e7cfc5c (patch)
tree3e16d3abcce8cbd663d7e5ad39eafe3f67e53276 /test-suite
parent14196d8ab425f67faf3995bd29a003de3b2e87ac (diff)
Inherit argument scopes in notations to expressions of the form @f.
This is a change of semantics.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/Notations2.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/success/Notations2.v b/test-suite/success/Notations2.v
index 986908b7fc..dca0208fb0 100644
--- a/test-suite/success/Notations2.v
+++ b/test-suite/success/Notations2.v
@@ -185,3 +185,12 @@ Import A.
Infix "+++" := Nat.add (at level 80).
End M18.
+
+Module InheritanceArgumentScopes.
+
+Axiom p : forall (A:Type) (b:nat), A = A /\ b = b.
+Check fun A n => p (A * A) (n * n). (* safety check *)
+Notation q := @p.
+Check fun A n => q (A * A) (n * n). (* check that argument scopes are propagated *)
+
+End InheritanceArgumentScopes.