aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics/tacticals.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tactics/tacticals.ml')
-rw-r--r--tactics/tacticals.ml8
1 files changed, 6 insertions, 2 deletions
diff --git a/tactics/tacticals.ml b/tactics/tacticals.ml
index 888785ae9..294a13c6d 100644
--- a/tactics/tacticals.ml
+++ b/tactics/tacticals.ml
@@ -185,8 +185,12 @@ Ce qui fait que si la conclusion ne matche pas le pattern, Auto échoue, même
si après Intros la conclusion matche le pattern.
*)
-let conclPattern concl pat tacast gl =
- let constr_bindings = Pattern.matches pat concl in
+(* conclPattern doit échouer avec error car il est rattraper par tclFIRST *)
+
+let conclPattern concl pat tacast gl =
+ let constr_bindings =
+ try Pattern.matches pat concl
+ with PatternMatchingFailure -> error "conclPattern" in
let ast_bindings =
List.map
(fun (i,c) ->