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.
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
doErrorMsg.lean:3:2-3:13: error: type mismatch
|
|
IO.getStdin
|
|
has type
|
|
BaseIO IO.FS.Stream : Type
|
|
but is expected to have type
|
|
IO PUnit : Type
|
|
doErrorMsg.lean:15:19-15:21: error: type mismatch
|
|
f1
|
|
has type
|
|
ExceptT String (StateT Nat Id) Nat : Type
|
|
but is expected to have type
|
|
ExceptT String (StateT Nat Id) String : Type
|
|
doErrorMsg.lean:19:19-19:24: error: type mismatch
|
|
f2 10
|
|
has type
|
|
ExceptT String (StateT Nat Id) Nat : Type
|
|
but is expected to have type
|
|
ExceptT String (StateT Nat Id) String : Type
|
|
doErrorMsg.lean:23:10-23:12: error: type mismatch
|
|
f2
|
|
has type
|
|
Nat → ExceptT String (StateT Nat Id) Nat : Type
|
|
but is expected to have type
|
|
ExceptT String (StateT Nat Id) ?m : Type
|
|
doErrorMsg.lean:24:2-24:4: error: type mismatch
|
|
f1
|
|
has type
|
|
ExceptT String (StateT Nat Id) Nat : Type
|
|
but is expected to have type
|
|
ExceptT String (StateT Nat Id) String : Type
|
|
doErrorMsg.lean:28:13-28:18: error: Application type mismatch: In the appplication
|
|
Prod.mk false
|
|
the final argument
|
|
false
|
|
has type
|
|
Bool : Type
|
|
but is expected to have type
|
|
Nat : Type
|