lean4-htt/tests/lean/run/2226.lean
Leonardo de Moura eabde77d84
fix: improve type-as-hole error message (#8262)
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>
2025-05-09 22:49:37 +00:00

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