chore(frontends/lean/elaborator): add assertion for sanity checking
This commit is contained in:
parent
7e875c8d85
commit
24b35eefe6
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue