aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tactics/tacintern.ml11
-rw-r--r--test-suite/bugs/closed/shouldsucceed/3050.v7
2 files changed, 13 insertions, 5 deletions
diff --git a/tactics/tacintern.ml b/tactics/tacintern.ml
index e75c5dd46c..b1830523b0 100644
--- a/tactics/tacintern.ml
+++ b/tactics/tacintern.ml
@@ -374,9 +374,10 @@ let intern_flag ist red =
let intern_constr_with_occurrences ist (l,c) = (l,intern_constr ist c)
-let intern_constr_pattern ist ltacvars pc =
- let metas,pat =
- Constrintern.intern_constr_pattern ist.gsigma ist.genv ~ltacvars pc in
+let intern_constr_pattern ist ~as_type ~ltacvars pc =
+ let metas,pat = Constrintern.intern_constr_pattern
+ ist.gsigma ist.genv ~as_type ~ltacvars pc
+ in
let c = intern_constr_gen true false ist pc in
metas,(c,pat)
@@ -442,11 +443,11 @@ let intern_hyp_location ist ((occs,id),hl) =
let intern_pattern ist ?(as_type=false) lfun = function
| Subterm (b,ido,pc) ->
let ltacvars = (lfun, Id.Set.empty) in
- let (metas,pc) = intern_constr_pattern ist ltacvars pc in
+ let (metas,pc) = intern_constr_pattern ist ~as_type ~ltacvars pc in
ido, metas, Subterm (b,ido,pc)
| Term pc ->
let ltacvars = (lfun, Id.Set.empty) in
- let (metas,pc) = intern_constr_pattern ist ltacvars pc in
+ let (metas,pc) = intern_constr_pattern ist ~as_type ~ltacvars pc in
None, metas, Term pc
let intern_constr_may_eval ist = function
diff --git a/test-suite/bugs/closed/shouldsucceed/3050.v b/test-suite/bugs/closed/shouldsucceed/3050.v
new file mode 100644
index 0000000000..4b18722431
--- /dev/null
+++ b/test-suite/bugs/closed/shouldsucceed/3050.v
@@ -0,0 +1,7 @@
+Goal forall A B, A * B -> A.
+Proof.
+intros A B H.
+match goal with
+ | [ H : _ * _ |- _ ] => exact (fst H)
+end.
+Qed.