[CP] It is not an error to use a void typed expression in SwitchExpressionCase. #52218
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
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
d838d1a
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/302880
Issue Description
The language team clarified that it is not an error to use a
void
typed expression in a switch expression case expression.What is the fix
The change removes the reporting it for
case
, but keeps from the scrutinee.Why cherry-pick
It is probably easier to fix it before
3.0
release than to change rules later.It is one line change.
Risk
low
Issue link(s)
#52191
Extra Info
No response
The text was updated successfully, but these errors were encountered: