lean4-htt/tests/lean/243.lean.expected.out
Markus Himmel 1db53b39c4
chore: improve application type mismatch error message (#8264)
This PR rewords the `application type mismatch` error message by more
specifically mentioning that the problem is with the final argument.
This is useful when the same argument is passed to the function multiple
times.

We decided against using a wording which specifically mentions the
"function expression", because users who are not used to currying might
not think of the `f a` in `f a b` as a function.
2025-05-08 15:34:40 +00:00

16 lines
366 B
Text

243.lean:2:10-2:14: error: Application type mismatch: In the appplication
⟨Bool, true⟩
the final argument
true
has type
_root_.Bool : Type
but is expected to have type
Bool : Type
243.lean:13:7-13:8: error: Application type mismatch: In the appplication
⟨A, a⟩
the final argument
a
has type
Foo.A : Type
but is expected to have type
A : Type