chore(frontends/lean/elaborator): add assertion for sanity checking

This commit is contained in:
Leonardo de Moura 2015-05-25 14:04:27 -07:00
parent 7e875c8d85
commit 24b35eefe6

View file

@ -1846,6 +1846,7 @@ bool elaborator::try_using_begin_end(substitution & subst, expr const & mvar, pr
return false;
} else {
subst = ps.get_subst();
lean_assert(subst.is_assigned(mvar));
expr v = subst.instantiate(mvar);
subst.assign(mlocal_name(mvar), v);
return true;