aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorherbelin2011-04-28 07:11:39 +0000
committerherbelin2011-04-28 07:11:39 +0000
commit39514550177a887a526a66b8ec080cae5c463a9d (patch)
treecef80ee3246d3dc3b53957ca8bcee3e65871c539 /test-suite
parent60dcc820b206ac0540af248ee993bfd000ba7bf0 (diff)
Fixing an "apply -> ... in hyp" bug (the hyp was considered as a fixed
ident by Ltac). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14074 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/apply.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-suite/success/apply.v b/test-suite/success/apply.v
index d1efbca85a..32d82bd1a8 100644
--- a/test-suite/success/apply.v
+++ b/test-suite/success/apply.v
@@ -202,6 +202,13 @@ try apply H.
unfold ID; apply H0.
Qed.
+(* Test hyp in "apply -> ... in hyp" is correctly instantiated by Ltac *)
+
+Goal (True <-> False) -> True -> False.
+intros Heq H.
+match goal with [ H : True |- _ ] => apply -> Heq in H end.
+Abort.
+
(* Test coercion below product and on non meta-free terms in with bindings *)
(* Cf wishes #1408 from E. Makarov *)