Skip to content

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