Skip to content

[Sema] Avoid forming nested do expressions in if/switch bindings #70987

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
Jan 18, 2024

Conversation

hamishknight
Copy link
Contributor

In asserts builds this hits an assert that the feature isn't enabled, and in no-asserts builds this incorrectly allows do expressions to be used with the feature disabled. Note this only affects their use when nested in an if/switch that is used in a binding, we correctly handled the other cases.

rdar://121193678

In asserts builds this hits an assert that the
feature isn't enabled, and in no-asserts builds
this incorrectly allows `do` expressions to be
used with the feature disabled. Note this only
affects their use when nested in an `if`/`switch`
that is used in a binding, we correctly handled
the other cases.

rdar://121193678
@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test

@hamishknight hamishknight merged commit a4ae133 into swiftlang:main Jan 18, 2024
@hamishknight hamishknight deleted the do-not branch January 18, 2024 19:10
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