fix(frontends/lean/elaborator): synthesize metavars in e before trying to synthesize reflected e

This commit is contained in:
Sebastian Ullrich 2017-09-01 14:24:11 +02:00
parent da46862b46
commit da785d96a0

View file

@ -3196,6 +3196,7 @@ expr elaborator::visit_expr_quote(expr const & e, optional<expr> const & expecte
} else {
new_s = visit(s, none_expr());
}
synthesize(); // try to instantiate all metavars in `new_s`, otherwise reflection will fail
expr cls = mk_app(m_ctx, get_reflected_name(), new_s);
return mk_instance(cls, e);
}