let metasenv',expr = mk_metasenv_and_expr resolve_id' in
(*CSC: Bug here: we do not try to typecheck also the metasenv' *)
try
- let term,_,_,metasenv'' =
+ let term,_,metasenv'' =
CicRefine.type_of_aux' metasenv' context expr
in
Ok (term,metasenv'')
prerr_endline
(Printf.sprintf
"+++++ ASSERTION FAILED: a refine operation should not modify the metasenv. Old metasenv:\n %s\n New metasenv:\n %s\n"
- (CicMetaSubst.ppmetasenv [] metasenv)
- (CicMetaSubst.ppmetasenv [] newmetasenv)) ;
+ (CicMetaSubst.ppmetasenv metasenv [])
+ (CicMetaSubst.ppmetasenv newmetasenv [])) ;
(* an assert would raise an exception that could be caught *)
exit 1
end