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.
8 lines
189 B
Text
8 lines
189 B
Text
283.lean:1:24-1:25: error: Application type mismatch: In the appplication
|
|
f f
|
|
the final argument
|
|
f
|
|
has type
|
|
?m : Sort ?u
|
|
but is expected to have type
|
|
optParam (Sort ?u) t : Type ?u
|