https://dart-review.googlesource.com/c/sdk/+/378960 adds a new analyzer warning, unreachable_switch_default, which fires whenever the exhaustiveness checker detects that the default clause of a switch statement cannot be reached, because the case clauses that precede it fully account for all possible values of the value being switched upon.
The following co19 tests need to be modified to account for the new warning:
LanguageFeatures/Patterns/constant_A01_t01
LanguageFeatures/Patterns/constant_A02_t01
LanguageFeatures/Patterns/constant_A02_t04
LanguageFeatures/Patterns/constant_A02_t07
LanguageFeatures/Patterns/constant_A02_t10
LanguageFeatures/Patterns/constant_A02_t13
LanguageFeatures/Patterns/constant_A02_t16
LanguageFeatures/Patterns/pattern_context_A07_t01
Probably the best thing to do is to ignore (or expect) the warning in these tests.
https://dart-review.googlesource.com/c/sdk/+/378960 adds a new analyzer warning,
unreachable_switch_default
, which fires whenever the exhaustiveness checker detects that thedefault
clause of a switch statement cannot be reached, because thecase
clauses that precede it fully account for all possible values of the value being switched upon.The following co19 tests need to be modified to account for the new warning:
Probably the best thing to do is to ignore (or expect) the warning in these tests.