lean4-htt/tests/lean/run/2226.lean
Sebastian Ullrich caf815b009
feat: improve infer binder type failure message and range (#8263)
This PR improves the message and range of infer binder type failures.

---------

Co-authored-by: Joseph Rotella <7482866+jrr6@users.noreply.github.com>
2025-07-14 20:19:11 +00:00

17 lines
261 B
Text

/--
error: unsolved goals
A : Nat
⊢ Sort ?u.3
-/
#guard_msgs in
variable (A : Nat) (B : by skip)
/-- error: Failed to infer type of definition `foo` -/
#guard_msgs in
def foo :=
A = B
/-- warning: declaration uses 'sorry' -/
#guard_msgs in
def boo :=
B