This PR improves the message and range of infer binder type failures. --------- Co-authored-by: Joseph Rotella <7482866+jrr6@users.noreply.github.com>
17 lines
261 B
Text
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
|