Skip to content

[Sema] Remove separate closure type-checking logic #76297

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 2 commits into from
Sep 9, 2024

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Sep 5, 2024

participatesInInference is now always true for a non-empty body, remove it along with the separate type-checking logic such that empty bodies are type-checked together with the context.

@hamishknight
Copy link
Contributor Author

@swift-ci please test source compatibility

If we have a single missing argument for an empty
`buildBlock` call, emit a custom diagnostic.
`participatesInInference` is now always true for
a non-empty body, remove it along with the separate
type-checking logic such that empty bodies are
type-checked together with the context.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test macOS

@hamishknight hamishknight merged commit 3f916f5 into swiftlang:main Sep 9, 2024
4 of 5 checks passed
@hamishknight hamishknight deleted the together-forever branch September 9, 2024 09:23
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