add_params
(interpretate_term ~obj_context:[] ~context ~env ~uri:None
~is_path:false ty) in
+ let nref =
+ NReference.reference_of_spec uri (NReference.Ind (true,0,leftno)) in
+ let obj_context = [name,nref] in
let fields' =
snd (
List.fold_left
(fun (context,res) (name,ty,_coercion,_arity) ->
let ty =
- interpretate_term ~obj_context:[] ~context ~env ~uri:None
+ interpretate_term ~obj_context ~context ~env ~uri:None
~is_path:false ty in
let context' = (name,NCic.Decl ty)::context in
context',(name,ty)::res
) (context,[]) fields) in
let concl =
- let nref =
- NReference.reference_of_spec uri (NReference.Ind (true,0,leftno)) in
let mutind = NCic.Const nref in
if params = [] then mutind
else