fix: using incorrect context for withDefault
This commit is contained in:
parent
02ddbfa7da
commit
c14ded6984
1 changed files with 1 additions and 1 deletions
|
|
@ -605,7 +605,7 @@ s ← get;
|
|||
let len := s.syntheticMVars.length;
|
||||
newSyntheticMVars ← s.syntheticMVars.filterM $ fun mvarDecl =>
|
||||
match mvarDecl.kind with
|
||||
| SyntheticMVarKind.withDefault defaultVal => do
|
||||
| SyntheticMVarKind.withDefault defaultVal => withMVarContext mvarDecl.mvarId $ do
|
||||
val ← instantiateMVars mvarDecl.ref (mkMVar mvarDecl.mvarId);
|
||||
when val.getAppFn.isMVar $
|
||||
unlessM (isDefEq mvarDecl.ref val defaultVal) $
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue