feat: Extract type error and new constants #128

Merged
aniva merged 17 commits from frontend/infotree into dev 2024-12-11 01:25:36 -08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 2d068ecd50 - Show all commits

View File

@ -110,7 +110,7 @@ private def collectSorrysInTree (t : Elab.InfoTree) : IO (List InfoWithContext)
return true
ctx.runMetaM lctx do
let type ← Meta.inferType expr
Bool.not <$> Meta.isDefEq type expectedType
Bool.not <$> Meta.isExprDefEqGuarded type expectedType
| .ofTacticInfo { stx, goalsBefore, .. } =>
-- The `sorry` term is distinct from the `sorry` tactic
let isSorry := stx.isOfKind `Lean.Parser.Tactic.tacticSorry