Closed kevmoo closed 1 month ago
Yeah. We don't currently have the smarts to handle:
case 'float':
case 'int':
return 4;
(but we should add 'em!)
An interesting workaround here is that you can convert to an if-case statement chain, then back to a switch statement, then finally to a switch expression :P
I believe this specific ask was already solved by https://github.com/dart-lang/sdk/issues/54567 (@srawlins to close this). I also created my request to it https://github.com/dart-lang/sdk/issues/55861 missing both.
Current related issues that I know of (1 request to separate the assist to merge the cases and 2 bugs with the current assist respectively):
There are also some other issues I created related to the formatter and some suggested lints all linked to the above issues.
Ah excellent, closing then.
I think I'm using the terms correctly.
should have a suggested fix to
but it does not!