Skip to content

fix bug fusing option-type fields#6900

Merged
mccanne merged 1 commit intomainfrom
fuse-optional-field
May 2, 2026
Merged

fix bug fusing option-type fields#6900
mccanne merged 1 commit intomainfrom
fuse-optional-field

Conversation

@mccanne
Copy link
Copy Markdown
Collaborator

@mccanne mccanne commented May 2, 2026

With the new design for option types, the fuser needs to fuse optional fields such that the option type of the field is pushed into the field's fusion type so we have fusion(...|none) instead of none|fusion(...). This problem was causing upcast to fail on such patterns. We've added test coverage to catch this.

With the new design for option types, the fuser needs to fuse
optional fields such that the option type of the field is pushed
into the field's fusion type so we have fusion(...|none) instead of
none|fusion(...).  This problem was causing upcast to fail on
such patterns.  We've added test coverage to catch this.
@mccanne mccanne merged commit 5cd4c38 into main May 2, 2026
2 checks passed
@mccanne mccanne deleted the fuse-optional-field branch May 2, 2026 14:36
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.

2 participants