aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-02-25 15:21:05 -0500
committerEmilio Jesus Gallego Arias2020-02-25 15:21:05 -0500
commitfe1335eb350c305142bf4be57c681891515a5dac (patch)
treec23e9cb9d1ed520c559b94ad8d192e646cc8fc36 /test-suite
parent1528c066e69327c4769b531cc105b558183b43b1 (diff)
parentf71ec3907c0535bf6831ed60a3656ecbe8ac744f (diff)
Merge PR #11680: Fixing residual bug of #11120: inheritance of maximal implicit arguments for non-applied notations
Reviewed-by: ejgallego
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/Notations2.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/success/Notations2.v b/test-suite/success/Notations2.v
index f166a53256..382c252727 100644
--- a/test-suite/success/Notations2.v
+++ b/test-suite/success/Notations2.v
@@ -194,3 +194,11 @@ Notation q := @p.
Check fun A n => q (A * A) (n * n). (* check that argument scopes are propagated *)
End InheritanceArgumentScopes.
+
+Module InheritanceMaximalImplicitPureNotation.
+
+Definition id {A B:Type} (a:B) := a.
+Notation "#" := (@id nat).
+Check # = (fun a:nat => a). (* # should inherit its maximal implicit argument *)
+
+End InheritanceMaximalImplicitPureNotation.