aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-10-22 10:55:56 +0200
committerPierre-Marie Pédrot2019-10-22 10:55:56 +0200
commit487f23187413e6cf6ee117d798a9057d0008aa6a (patch)
tree3808cc96f0884475ff089820587c69915f589be1 /test-suite
parent23a825c1b02b50991f0bed9e3f71197a46c639a5 (diff)
parente9497e5131f13cdea86aff8ae697415d400538fd (diff)
Merge PR #10899: Fixes #10894 regression: uconstr was not anymore typed in the Ltac-substituted environment
Reviewed-by: ejgallego Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_10894.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_10894.v b/test-suite/bugs/closed/bug_10894.v
new file mode 100644
index 0000000000..b8c9367951
--- /dev/null
+++ b/test-suite/bugs/closed/bug_10894.v
@@ -0,0 +1,12 @@
+(* Check that uconstrs are interpreted in the ltac-substituted environment *)
+(* Was a regression introduced in 4dab4fc (#7288) *)
+
+Tactic Notation "bind" hyp(x) "in" uconstr(f) "as" ident(h) :=
+ set (h := fun x => f).
+
+Fact test : nat -> nat.
+Proof.
+ intros n.
+ bind n in (n*n) as f.
+ assert (f 0 = 0) by reflexivity.
+Abort.