From b0c4d25cc0722e17f6e18fdafd64a81d51f1d006 Mon Sep 17 00:00:00 2001 From: Robbert Krebbers <mail@robbertkrebbers.nl> Date: Mon, 12 Aug 2019 13:02:04 +0200 Subject: [PATCH] Fix issue #259. Based on @Blaisorblade's suggestion. --- theories/proofmode/ltac_tactics.v | 1 + 1 file changed, 1 insertion(+) diff --git a/theories/proofmode/ltac_tactics.v b/theories/proofmode/ltac_tactics.v index 81e03f9a5..f90abdcf5 100644 --- a/theories/proofmode/ltac_tactics.v +++ b/theories/proofmode/ltac_tactics.v @@ -573,6 +573,7 @@ Local Tactic Notation "iForallRevert" ident(x) := | context [x] => fail 2 "iRevert:" x "is used in hypothesis" H end) in iStartProof; + first [let _ := type of x in idtac|fail 1 "iRevert:" x "not in scope"]; let A := type of x in lazymatch type of A with | Prop => revert x; first [apply tac_pure_revert|err x] -- GitLab