Skip to content

[Sema] Don't abort the result builder transform if the builder contained an ErrorExpr #64334

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
merged 1 commit into from
Mar 15, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 13, 2023

When matching a result builder in the constraint system, the closure has already been pre-checked so we don’t need to pre-check it again. Also, we can continue type checking even if the closure contained an ErrorExpr since result builders are now type checked like regular closures.

@ahoppen ahoppen requested a review from xedin March 13, 2023 22:01
@ahoppen
Copy link
Member Author

ahoppen commented Mar 13, 2023

@swift-ci Please smoke test

…ned an ErrorExpr

When matching a result builder in the constraint system, the closure has already been pre-checked so we don’t need to pre-check it again. Also, we can continue type checking even if the closure contained an `ErrorExpr` since result builders are now type checked like regular closures.
@ahoppen ahoppen force-pushed the ahoppen/dont-precheck-twice branch from f318be5 to cbb32aa Compare March 13, 2023 22:51
@ahoppen
Copy link
Member Author

ahoppen commented Mar 13, 2023

@swift-ci Please smoke test

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ahoppen
Copy link
Member Author

ahoppen commented Mar 14, 2023

@swift-ci Please SourceKit stress test

@ahoppen ahoppen merged commit 847dbce into swiftlang:main Mar 15, 2023
@ahoppen ahoppen deleted the ahoppen/dont-precheck-twice branch March 15, 2023 00: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