lean4-htt/tests/lean/nameArgErrorIssue.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

20 lines
588 B
Text

bla 5 2 : Nat
nameArgErrorIssue.lean:5:20-5:24: error: Application type mismatch: In the appplication
bla "hi"
the final argument
"hi"
has type
String : Type
but is expected to have type
Nat : Type
bla sorry 5 : Nat
nameArgErrorIssue.lean:6:20-6:24: error: Application type mismatch: In the appplication
bla "hi"
the final argument
"hi"
has type
String : Type
but is expected to have type
Nat : Type
nameArgErrorIssue.lean:6:11-6:19: error: invalid argument name 'z' for function 'bla'
nameArgErrorIssue.lean:7:11-7:19: error: invalid argument name 'z' for function 'bla'