From 697bfeba6f5bdff48b254092a3f7f6616080e9b2 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Wed, 19 Sep 2018 13:42:44 +0200 Subject: Allow successive attributes #[foo] #[bar] --- test-suite/success/attribute-syntax.v | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test-suite') 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. -- cgit v1.2.3