aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker/closure.ml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2014-12-16 10:58:13 +0100
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2014-12-17 17:47:48 +0100
commitfba1f0ed91aff372234b5a95422ee18f1730522f (patch)
treefa5ca22e0af3ad47067c5908385039e1668f7843 /checker/closure.ml
parentf3a6d9080842899e50a44e9474ac0f9a475d5db1 (diff)
Update checker/values and cic due to changes in case_info and record_body.
Diffstat (limited to 'checker/closure.ml')
-rw-r--r--checker/closure.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/checker/closure.ml b/checker/closure.ml
index 879146284..35c16d2ab 100644
--- a/checker/closure.ml
+++ b/checker/closure.ml
@@ -731,8 +731,7 @@ let rec get_parameters depth n argstk =
let eta_expand_ind_stack env ind m s (f, s') =
let mib = lookup_mind (fst ind) env in
match mib.mind_record with
- | Some (projs,pbs) when Array.length projs > 0
- && mib.mind_finite <> CoFinite ->
+ | Some (Some (_,projs,pbs)) when mib.mind_finite <> CoFinite ->
(* (Construct, pars1 .. parsm :: arg1...argn :: []) ~= (f, s') ->
arg1..argn ~= (proj1 t...projn t) where t = zip (f,s') *)
let pars = mib.mind_nparams in