fix(frontends/lean/elaborator): instantiate assigned metavariables before collecting unassigned ones
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
0f12e5a35b
commit
1c191c1ec7
1 changed files with 4 additions and 1 deletions
|
@ -1120,9 +1120,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
expr solve_unassigned_mvars(substitution & subst, expr const & e, name_set & visited) {
|
||||
expr solve_unassigned_mvars(substitution & subst, expr e, name_set & visited) {
|
||||
e = subst.instantiate(e);
|
||||
buffer<expr> mvars;
|
||||
collect_metavars(e, mvars);
|
||||
if (mvars.empty())
|
||||
return e;
|
||||
for (auto mvar : mvars) {
|
||||
check_interrupted();
|
||||
solve_unassigned_mvar(subst, mvar, visited);
|
||||
|
|
Loading…
Reference in a new issue