assert (goal_arity >= 0);
let rec aux metasenv = function
| NCic.Prod (name,s,t) as ty ->
- let metasenv1, arg,_ =
+ let metasenv1, _, arg,_ =
NCicMetaSubst.mk_meta ~name:name metasenv context (`WithType s) in
let t, metasenv1, args, pno =
aux metasenv1 (NCicSubstitution.subst arg t)
let rec aux () (m,l as acc) = function
| NCic.Meta _ as t -> acc, t
| NCic.LetIn (name,ty,bo,t) ->
- let m,i,_=NCicMetaSubst.mk_meta ~name m context (`WithType ty)in
+ let m,_,i,_=
+ NCicMetaSubst.mk_meta ~name m context (`WithType ty)in
let t = NCicSubstitution.subst i t in
aux () (m, (i,bo)::l) t
| t -> NCicUntrusted.map_term_fold_a (fun _ () -> ()) () aux acc t