fix: missing instantiateMVars

This commit is contained in:
Leonardo de Moura 2019-12-05 06:57:50 -08:00
parent dd0b71938d
commit 9715bc7738

View file

@ -194,6 +194,7 @@ def newSubgoal (mctx : MetavarContext) (key : Expr) (mvar : Expr) (waiter : Wait
withMCtx mctx $ do
trace `Meta.synthInstance.newSubgoal $ fun _ => key;
mvarType ← inferType mvar;
mvarType ← instantiateMVars mvarType;
instances ← getInstances mvarType;
mctx ← getMCtx;
if instances.isEmpty then pure ()