Skip to content
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

Fix option unboxing logic in the presence of untagged variants #6233

Merged
merged 2 commits into from
May 2, 2023

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented May 2, 2023

The compiler's logic for unboxing options assumes that variant types cannot hold the undefined value.
This PR updates the logic taking into account the custom representation and untagged.

Fixes #6222

@cristianoc cristianoc merged commit 654fa48 into master May 2, 2023
2 checks passed
@cristianoc cristianoc deleted the option_unboxing branch May 2, 2023 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate option unboxing logic to make it compatible with untagged variants.
2 participants