in
let metasenv, subst, term, _ =
NCicRefiner.typeof
- { rdb with NRstatus.coerc_db =
- if use_coercions then rdb.NRstatus.coerc_db
- else NCicCoercion.empty_db }
+ (rdb#set_coerc_db
+ (if use_coercions then rdb#coerc_db else NCicCoercion.empty_db))
metasenv subst context term expty ~localise
in
Disambiguate.Ok (term, metasenv, subst, ())
try
let obj =
NCicRefiner.typeof_obj
- { rdb with NRstatus.coerc_db =
- if use_coercions then rdb.NRstatus.coerc_db
- else NCicCoercion.empty_db }
+ (rdb#set_coerc_db
+ (if use_coercions then rdb#coerc_db
+ else NCicCoercion.empty_db))
obj ~localise
in
Disambiguate.Ok (obj, [], [], ())