let term', _, _, metasenv' = CicRefine.type_of_aux' metasenv context term in
Ok (term', metasenv')
with
- | CicRefine.MutCaseFixAndCofixRefineNotImplemented ->
- (* TODO remove this case as soon as refine is fully implemented *)
- (try
- debug_print (Printf.sprintf "TYPE CHECKER %s" (CicPp.ppterm term));
- let term' = CicTypeChecker.type_of_aux' metasenv context term in
- Ok (term',metasenv)
-(* with _ -> Ko) *)
- with _ -> Uncertain)
| CicRefine.Uncertain _ ->
debug_print ("%%% UNCERTAIN!!! " ^ CicPp.ppterm term) ;
Uncertain
| [uri] -> [uri]
| _ ->
C.interactive_user_uri_choice ~selection_mode:`MULTIPLE
- ~ok:"Try every selection." ~enable_button_for_non_vars:true
+ ~ok:"Try selected." ~enable_button_for_non_vars:true
~title:"Ambiguous input." ~id
~msg: ("Ambiguous input \"" ^ id ^
"\". Please, choose one or more interpretations:")