feat(library/lean/lean): improve overload error message

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-26 08:52:40 -07:00
parent 656bcd55ed
commit 2d2f23cda6

View file

@ -295,7 +295,7 @@ public:
auto choice_fn = [=](expr const & /* t */, substitution const & s, name_generator const & /* ngen */) {
return choose(std::make_shared<choice_elaborator>(*this, e, ctx, s));
};
justification j = mk_justification("overloading", some_expr(e));
justification j = mk_justification("none of the overloads is applicable", some_expr(e));
add_cnstr(mk_choice_cnstr(m, choice_fn, false, j));
return m;
}