diff options
| author | Gaëtan Gilbert | 2018-09-19 13:42:44 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2018-09-26 12:49:44 +0200 |
| commit | 697bfeba6f5bdff48b254092a3f7f6616080e9b2 (patch) | |
| tree | e870da391160267c01d992b42d4cd14fe6b9d1eb /test-suite | |
| parent | b7cd70b5732d43280fc646115cd8597f2e844f95 (diff) | |
Allow successive attributes #[foo] #[bar]
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/attribute-syntax.v | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test-suite/success/attribute-syntax.v b/test-suite/success/attribute-syntax.v index 83fb3d0c8e..241d4eb200 100644 --- a/test-suite/success/attribute-syntax.v +++ b/test-suite/success/attribute-syntax.v @@ -1,4 +1,4 @@ -From Coq Require Program. +From Coq Require Program.Wf. Section Scope. @@ -21,3 +21,13 @@ Fixpoint f (n: nat) {wf lt n} : nat := _. #[deprecated(since="8.9.0")] Ltac foo := foo. + +Module M. + #[local] #[polymorphic] Definition zed := Type. + + #[local, polymorphic] Definition kats := Type. +End M. +Check M.zed@{_}. +Fail Check zed. +Check M.kats@{_}. +Fail Check kats. |
