aboutsummaryrefslogtreecommitdiff
path: root/proofs
diff options
context:
space:
mode:
Diffstat (limited to 'proofs')
-rw-r--r--proofs/logic.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/proofs/logic.ml b/proofs/logic.ml
index 02f3a16d85..fb88b87546 100644
--- a/proofs/logic.ml
+++ b/proofs/logic.ml
@@ -382,10 +382,11 @@ let rec mk_refgoals sigma goal goalacc conclty trm =
match kind_of_term f with
| Ind _ | Const _
when (isInd f || has_polymorphic_type (fst (destConst f))) ->
+ let sigma, ty =
(* Sort-polymorphism of definition and inductive types *)
- goalacc,
- type_of_global_reference_knowing_conclusion env sigma f conclty,
- sigma, f
+ type_of_global_reference_knowing_conclusion env sigma f conclty
+ in
+ goalacc, ty, sigma, f
| _ ->
mk_hdgoals sigma goal goalacc f
in