aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2015-03-11 13:52:35 +0100
committerPierre-Marie Pédrot2015-03-11 13:52:35 +0100
commitf90dde7b3b6eabf1f8441fe442bcf7f0263c0793 (patch)
treea02237882a2753d65040b552389d211c982e3d26 /toplevel
parent33b7c678d6c828f012cae3a0ab8265ffde3bdaa4 (diff)
parent106b002b8e2d45c8824b145f29f5680317de78c4 (diff)
Merge branch 'v8.5'
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/record.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/toplevel/record.ml b/toplevel/record.ml
index 55f533512b..737b7fb59f 100644
--- a/toplevel/record.ml
+++ b/toplevel/record.ml
@@ -472,10 +472,15 @@ let add_inductive_class ind =
let k =
let ctx = oneind.mind_arity_ctxt in
let inst = Univ.UContext.instance mind.mind_universes in
+ let map = function
+ | (_, Some _, _) -> None
+ | (_, None, t) -> Some (lazy t)
+ in
+ let args = List.map_filter map ctx in
let ty = Inductive.type_of_inductive_knowing_parameters
(push_rel_context ctx (Global.env ()))
((mind,oneind),inst)
- (Array.map (fun x -> lazy x) (Termops.extended_rel_vect 0 ctx))
+ (Array.of_list args)
in
{ cl_impl = IndRef ind;
cl_context = List.map (const None) ctx, ctx;