[CP] [cfe] Allow void typed switch expression #52234
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
Commit(s) to merge
88721ba
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/303020
Issue Description
CFE companion to #52218. Fixes the CFE to not reject switch expressions with void arms in void contexts.
What is the fix
Allows void.
Why cherry-pick
Deviation from the specified behavior, user reported issue in beta testing.
Risk
low
Issue link(s)
#52191
Extra Info
This and the accompanying analyzer cherry pick are planned for the first hotfix release.
The text was updated successfully, but these errors were encountered: