feat: instantiateMVars when formatting messages

This commit is contained in:
Leonardo de Moura 2019-12-05 07:02:28 -08:00
parent 9715bc7738
commit 0f1184e1d6

View file

@ -49,7 +49,7 @@ partial def formatAux : Option (Environment × MetavarContext × LocalContext)
| _, ofLevel u => fmt u
| _, ofName n => fmt n
| none, ofExpr e => format (toString e)
| some (env, mctx, lctx), ofExpr e => format (toString e) -- TODO: invoke pretty printer
| some (env, mctx, lctx), ofExpr e => format (toString (mctx.instantiateMVars e).1) -- TODO: invoke pretty printer
| _, context env mctx lctx d => formatAux (some (env, mctx, lctx)) d
| ctx, tagged cls d => Format.sbracket (format cls) ++ " " ++ formatAux ctx d
| ctx, nest n d => Format.nest n (formatAux ctx d)