aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proofs/logic.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/proofs/logic.ml b/proofs/logic.ml
index d61fe21de0..67bb3a3c21 100644
--- a/proofs/logic.ml
+++ b/proofs/logic.ml
@@ -278,10 +278,8 @@ let rec mk_refgoals sigma goal goalacc conclty trm =
| App (f,l) ->
let (acc',hdty) =
match kind_of_term f with
- | Ind _ | Const _
- when not (array_exists occur_meta l) (* we could be finer *)
- & (isInd f or Heads.has_inductive_head env f)
- ->
+ | (Ind _ (* needed if defs in Type are polymorphic: | Const _*))
+ when not (array_exists occur_meta l) (* we could be finer *) ->
(* Sort-polymorphism of definition and inductive types *)
goalacc,
type_of_global_reference_knowing_parameters env sigma f l