-
Notifications
You must be signed in to change notification settings - Fork 469
Unboxed variant doesn't work when a payload record is defined in the recursive type definition #7314
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
Comments
It seems the definition of type rec object2 = {foo: string}
@unboxed and tagged2 = Object(object2) | Fn(unit => object2) |
cristianoc
added a commit
that referenced
this issue
Mar 6, 2025
Fixes #7314 - Delay untagged variant well-formedness checks until after environment construction - Collect all untagged variant checks during type declaration processing - Perform checks once all recursive types are available in the environment - Add test case for valid recursive untagged variant type definitions This fixes issues where recursive references in untagged variants would fail validation due to premature checking before the full type environment was built.
cristianoc
added a commit
that referenced
this issue
Mar 6, 2025
Fixes #7314 - Delay untagged variant well-formedness checks until after environment construction - Collect all untagged variant checks during type declaration processing - Perform checks once all recursive types are available in the environment - Add test case for valid recursive untagged variant type definitions This fixes issues where recursive references in untagged variants would fail validation due to premature checking before the full type environment was built.
cristianoc
added a commit
that referenced
this issue
Mar 6, 2025
Fixes #7314 - Delay untagged variant well-formedness checks until after environment construction - Collect all untagged variant checks during type declaration processing - Perform checks once all recursive types are available in the environment - Add test case for valid recursive untagged variant type definitions This fixes issues where recursive references in untagged variants would fail validation due to premature checking before the full type environment was built.
Nice, thank you very much 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both v11 and v12
https://rescript-lang.org/try?version=v12.0.0-alpha.9&module=esmodule&code=C4TwDgpgBA9gRgKwgY2FAvFA3gMxjALigGdgAnASwDsBzAXwCgABAVyrhgA8IATB0SFGABDGjV4YoAeUQpgACnhJUASigAfKADEq8thTToAfLFmqG-cNDIpTy4ACZJufEVKVajVuy4ThVHiFRcR4nTBl7RTNHNU0dPSoDDBMlOQcVBiA
The text was updated successfully, but these errors were encountered: