aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/4877.v
diff options
context:
space:
mode:
authorGravatar Cyprien Mangin <cyprien.mangin@m4x.org>2016-06-30 19:41:53 +0200
committerGravatar Cyprien Mangin <cyprien.mangin@m4x.org>2016-06-30 19:52:12 +0200
commitfd47b2d2638518fe62ce9c63557d2dab219d9558 (patch)
tree5e2d89f69ec5a3a27ee1bb346ce0cfed69a95807 /test-suite/bugs/closed/4877.v
parent9501ddd635adea7db07b4df60b8bda1d557dff18 (diff)
Goal selectors now use the keyword [only].
This fixes some parsing problems when doing things like [let n := 2 in idtac n]. See bug #4877.
Diffstat (limited to 'test-suite/bugs/closed/4877.v')
-rw-r--r--test-suite/bugs/closed/4877.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/4877.v b/test-suite/bugs/closed/4877.v
new file mode 100644
index 000000000..7e3c78dc2
--- /dev/null
+++ b/test-suite/bugs/closed/4877.v
@@ -0,0 +1,12 @@
+Ltac induction_last :=
+ let v := match goal with
+ | |- forall x y, _ = _ -> _ => 1
+ | |- forall x y, _ -> _ = _ -> _ => 2
+ | |- forall x y, _ -> _ -> _ = _ -> _ => 3
+ end in
+ induction v.
+
+Goal forall n m : nat, True -> n = m -> m = n.
+ induction_last.
+ reflexivity.
+Qed. \ No newline at end of file