default
is redundant when switch is exhaustive
#45437
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
analyzer Hint implementation issue for dart-lang/language#1539
Given:
Show a warning that default is dead code. I suspect this would use our current dead_code mechanisms and/or flow analysis.
The text was updated successfully, but these errors were encountered: