aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorcoqbot-app[bot]2021-03-25 19:00:52 +0000
committerGitHub2021-03-25 19:00:52 +0000
commit16d9e9cf378b9eb0ee0fc42c5c0a3a23b3df6ff4 (patch)
tree3610121a2971a363c2dcdfc0de0a5de20ce5c31e /test-suite
parentd1194d6458a433e34c3b4eecf13c18b084f4a9a5 (diff)
parent4a865fbce27d2b5ba0824ad52db0fea36ede0a9e (diff)
Merge PR #14004: Fix the redeclaration check for Ltac2 entry points.
Reviewed-by: gares
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_14003.v19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_14003.v b/test-suite/bugs/closed/bug_14003.v
new file mode 100644
index 0000000000..9e7055045d
--- /dev/null
+++ b/test-suite/bugs/closed/bug_14003.v
@@ -0,0 +1,19 @@
+Require Import Ltac2.Ltac2.
+
+Module Foo.
+
+Ltac2 foo := ().
+Ltac2 Type bar := [ BARĀ ].
+Ltac2 Type quz := [ .. ].
+Ltac2 Type quz ::= [ QUZ ].
+
+End Foo.
+
+Import Foo.
+
+(* Check that redeclaration checks are based on absolute names *)
+
+Ltac2 foo := ().
+Ltac2 Type bar := [ ].
+Ltac2 Type qux := [ BAR ].
+Ltac2 Type quz ::= [ QUZ ].