summaryrefslogtreecommitdiff
path: root/test-suite/failure/ltac2.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/failure/ltac2.v')
-rw-r--r--test-suite/failure/ltac2.v10
1 files changed, 5 insertions, 5 deletions
diff --git a/test-suite/failure/ltac2.v b/test-suite/failure/ltac2.v
index 55925a7a..14436e58 100644
--- a/test-suite/failure/ltac2.v
+++ b/test-suite/failure/ltac2.v
@@ -1,6 +1,6 @@
(* Check that Match arguments are forbidden *)
-Tactic Definition E x := Apply x.
-Goal True->True.
-E (Match Context With [ |- ? ] -> Intro H).
-(* Should fail with "Immediate Match producing tactics not allowed in
- local definitions" *)
+Ltac E x := apply x.
+Goal True -> True.
+E ltac:(match goal with
+ | |- _ => intro H
+ end).