aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorKenji Maillard2019-11-04 23:29:40 +0100
committerKenji Maillard2019-11-04 23:47:46 +0100
commitf75e1b5d8a4f679c839ffa327baa590198c69640 (patch)
tree9dd90229c10d35ae063da906e822a93628cf8539 /test-suite
parent634cb7b8a07a34fc29d074591091f0a6170f7bff (diff)
Prevent redefinition of Ltac2 types; fix #10097
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_10097.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_10097.v b/test-suite/bugs/closed/bug_10097.v
new file mode 100644
index 0000000000..12f2d4cc58
--- /dev/null
+++ b/test-suite/bugs/closed/bug_10097.v
@@ -0,0 +1,14 @@
+From Ltac2 Require Import Ltac2.
+
+(* #10097 *)
+Ltac2 Type s := [X(int)].
+Fail Ltac2 Type s.
+Fail Ltac2 Type s := [].
+
+Ltac2 Type r := [..].
+Fail Ltac2 Type r := [].
+
+Module Other.
+ Ltac2 Type s.
+ Ltac2 Type r := [].
+End Other.