This PR improves the type-as-hole error message. Type-as-hole error for theorem declarations should not admit the possibility of omitting the type entirely. --------- Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
17 lines
250 B
Text
17 lines
250 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 `foo` -/
|
|
#guard_msgs in
|
|
def foo :=
|
|
A = B
|
|
|
|
/-- warning: declaration uses 'sorry' -/
|
|
#guard_msgs in
|
|
def boo :=
|
|
B
|