aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Dénès2018-11-12 11:47:57 +0100
committerMaxime Dénès2018-11-12 11:47:57 +0100
commitccefe52e6cb755da9470ef1fe707d570a26681cb (patch)
tree168c4d10503de6fc87a26298f34da1c3db312952
parentbd9e68b11a9b7d6a9acb6bacb7ef169129e37a1b (diff)
Test case for #4771: Substitution of inline global reference in tactics is broken
-rw-r--r--test-suite/bugs/closed/bug_4771.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_4771.v b/test-suite/bugs/closed/bug_4771.v
new file mode 100644
index 0000000000..e25e5a1be5
--- /dev/null
+++ b/test-suite/bugs/closed/bug_4771.v
@@ -0,0 +1,21 @@
+(* The following code used to trigger an anomaly in functor substitutions *)
+
+Module Type Foo.
+
+Parameter Inline t : nat.
+
+End Foo.
+
+Module F(X : Foo).
+
+Tactic Notation "foo" ref(x) := idtac.
+
+Ltac g := foo X.t.
+
+End F.
+
+Module N.
+Definition t := 0 + 0.
+End N.
+
+Module K := F(N).