feat: instantiateMVars when formatting messages
This commit is contained in:
parent
9715bc7738
commit
0f1184e1d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue