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.
13 lines
385 B
Text
13 lines
385 B
Text
macroSwizzle.lean:4:7-4:23: error: failed to synthesize
|
|
HAdd Bool String ?m
|
|
|
|
Additional diagnostic information may be available using the `set_option diagnostics true` command.
|
|
macroSwizzle.lean:6:7-6:10: error: Application type mismatch: In the appplication
|
|
Nat.succ "x"
|
|
the final argument
|
|
"x"
|
|
has type
|
|
String : Type
|
|
but is expected to have type
|
|
Nat : Type
|
|
sorry.succ : Nat
|