-
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
Decide on the RFC for more general structural typing. #5412
Comments
Actually the error is very long, and at the very end there is:
So what needs to be done here is to implement the super_errors part of this error message, which is currently missing. | Typemod.Error (loc, env, err) ->
Some (Super_location.error_of_printer loc (report_error env) err)
| Typemod.Error_forward err ->
Some err One case needs to be added for |
There's a wider question of what to do with super_errors, which are the Rescript error messages. |
Another question about |
Another issue that came up is the one of empty objects (rescript-lang/syntax#517 (comment)). |
Related: rescript-lang/syntax#299 |
ooops, looks like the current |
New design that takes care of expressivity including a number of concerns: #5423. Concerns include:
|
This is currently in master:
https://forum.rescript-lang.org/t/rfc-more-general-type-checking-for-structural-typings/1485/73
Ok to experiment with, but in need of more thorough testing/polishing.

E.g. the two types below printed in the error message are identical.
Other questions include how to write type annotations. And figure out whether or not this is a new type.
For v10.0 it might be best to mark it as experimental, or turn it off, or develop it further.
The text was updated successfully, but these errors were encountered: