fix(library/type_context): most recent local instances have priority

This commit is contained in:
Leonardo de Moura 2016-07-27 16:01:07 -07:00
parent 3a5f6f2e64
commit 0283d80719

View file

@ -2288,7 +2288,7 @@ struct instance_synthesizer {
if (p.first == cname)
selected.push_back(p.second);
}
return to_list(selected);
return reverse_to_list(selected);
}
bool mk_choice_point(expr const & mvar) {