aboutsummaryrefslogtreecommitdiff
path: root/kernel/closure.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/closure.ml')
-rw-r--r--kernel/closure.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/closure.ml b/kernel/closure.ml
index 62ee5db5d5..6dacb7818c 100644
--- a/kernel/closure.ml
+++ b/kernel/closure.ml
@@ -866,7 +866,8 @@ let rec get_parameters depth n argstk =
let eta_expand_ind_stacks env ind m s (f, s') =
let mib = lookup_mind (fst ind) env in
match mib.Declarations.mind_record with
- | Some (exp,projs) when Array.length projs > 0 ->
+ | Some (exp,projs) when Array.length projs > 0
+ && mib.Declarations.mind_finite ->
let primitive = Environ.is_projection projs.(0) env in
if primitive then
(* (Construct, pars1 .. parsm :: arg1...argn :: []) ~= (f, s') ->