From 41d63ab4c702457556d2a0680940d04cd4e33179 Mon Sep 17 00:00:00 2001 From: Cyprien Mangin Date: Thu, 4 Jun 2015 14:35:07 +0200 Subject: The "on_last_hyp" tactic now behaves as it should. --- theories/Program/Tactics.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'theories/Program') diff --git a/theories/Program/Tactics.v b/theories/Program/Tactics.v index 0cf8d7337..c1d958b9d 100644 --- a/theories/Program/Tactics.v +++ b/theories/Program/Tactics.v @@ -41,7 +41,7 @@ Ltac do_nat n tac := (** Do something on the last hypothesis, or fail *) Ltac on_last_hyp tac := - match goal with [ H : _ |- _ ] => first [ tac H | fail 1 ] end. + lazymatch goal with [ H : _ |- _ ] => tac H end. (** Destructs one pair, without care regarding naming. *) -- cgit v1.2.3