src/Tools/adhoc_overloading.ML
changeset 54468 f6ffe53387ef
parent 54004 e13b0c88c798
child 55237 1e341728bae9
equal deleted inserted replaced
54467:663a927fdc88 54468:f6ffe53387ef
   176   end;
   176   end;
   177 
   177 
   178 fun check ctxt =
   178 fun check ctxt =
   179   map (fn t => Term.map_aterms (insert_variants ctxt t) t);
   179   map (fn t => Term.map_aterms (insert_variants ctxt t) t);
   180 
   180 
   181 fun uncheck ctxt =
   181 fun uncheck ctxt ts =
   182   if Config.get ctxt show_variants then I
   182   if Config.get ctxt show_variants orelse exists (is_none o try Term.type_of) ts then ts
   183   else map (insert_overloaded ctxt);
   183   else map (insert_overloaded ctxt) ts;
   184 
   184 
   185 fun reject_unresolved ctxt =
   185 fun reject_unresolved ctxt =
   186   let
   186   let
   187     val the_candidates = the o get_candidates ctxt;
   187     val the_candidates = the o get_candidates ctxt;
   188     fun check_unresolved t =
   188     fun check_unresolved t =