feat(library/type_context): add new trace msg

This commit is contained in:
Leonardo de Moura 2016-08-03 15:32:04 -07:00
parent bf730d992c
commit c32138db88

View file

@ -1461,6 +1461,10 @@ optional<expr> type_context::check_assignment(buffer<expr> const & locals, expr
if (std::all_of(locals.begin(), locals.end(), [&](expr const & a) {
return mlocal_name(a) != mlocal_name(e); })) {
ok = false;
lean_trace(name({"type_context", "is_def_eq_detail"}),
tout() << "failed to assign " << mvar << " to\n" << v << "\n" <<
"value contains local declaration " << e <<
" which is not in the scope of the metavariable";);
return false;
}
}