You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This uncurried function has type (int, ~labelled1: int, ~opt1: 'a=?) => int
It is applied with 1 arguments but it requires 3.
This isn't very helpful. Instead of showing the type signature and the application # vs required # arguments, let's make a list that shows:
Any required (labelled) arguments missing, plus their type (?)
Any extra argument provided that the function doesn't take
We don't need to mention uncurried in v12+ either, since everything is now uncurried.
Example of how the above could look:
This function call is:
- missing the required argument `labelled1: int`
- missing an unlabelled argument of type `int`
Did you mean to partially apply the function? If so, add 3 trailing dots to the function call, like `someFunction(~someArg, ...)`.
The text was updated successfully, but these errors were encountered:
Example:
Produces this error:
This isn't very helpful. Instead of showing the type signature and the application # vs required # arguments, let's make a list that shows:
We don't need to mention uncurried in v12+ either, since everything is now uncurried.
Example of how the above could look:
The text was updated successfully, but these errors were encountered: