Skip to content

[BuilderTransform] AST Transform: Inject buildOptional to top-level… #60912

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

Merged

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 1, 2022

if else conditions

Fixes a bug in buildOptional injection for if else branches
without unconditional else which leaves type-join with just .some(...)
and results in optionality mismatch if buildOptional don't not produce
an optional type.

… `if else` conditions

Fixes a bug in `buildOptional` injection for `if else` branches
without unconditional `else` which leaves type-join with just `.some(...)`
and results in optionality mismatch if `buildOptional` don't not produce
an optional type.
@xedin xedin requested a review from hborla September 1, 2022 20:34
@xedin
Copy link
Contributor Author

xedin commented Sep 2, 2022

@swift-ci please test

@xedin xedin merged commit 2dbf22c into swiftlang:main Sep 6, 2022
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