-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong error message in uncurried mode #6413
Comments
Hmm in this case the error message is correct, isn't it? |
Yeah I guess for this specific case it'd better to raise an issue in rescript relay for generating an uncurried use function |
it's also unclear to me why |
The compiler provides curried and uncurried versions of pervasives. |
Related to this #6147 |
I think that we should use the Also, it'll be an improvement for packages targeting both rescript and ts only users (eg like rescript-struct). For example, now I have two options to make it work:
So it can be solved by making |
I've noticed a bug in the error message that is provided when you are in uncurried mode and you provide a curried function to an uncurried signature:
this yields the following error:
Tested in v11.0.0-rc.3 (playground link).
Interestingly enough, it shows the correct error message when inlining the signature:
Originally got suspicious about this bug from this post on the forum.
The text was updated successfully, but these errors were encountered: