fix: Incorrect binder capture #152

Merged
aniva merged 4 commits from bug/incorrect-binder-capture into dev 2025-01-10 12:49:15 -08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 48b924fae2 - Show all commits

View File

@ -106,7 +106,7 @@ structure InfoWithContext where
private def collectSorrysInTree (t : Elab.InfoTree) : IO (List InfoWithContext) := do
let infos ← t.findAllInfoM none fun i ctx? => match i with
| .ofTermInfo { expectedType?, expr, stx, lctx, .. } => do
| .ofTermInfo { expectedType?, expr, stx, lctx, isBinder := false, .. } => do
let .some ctx := ctx? | return (false, true)
if expr.isSorry ∧ stx.isOfKind `Lean.Parser.Term.sorry then
if expectedType?.isNone then