Incorrect WarningCode.CONSTANT_PATTERN_NEVER_MATCHES_VALUE_TYPE
for null
#52060
Labels
analyzer-language-patterns
Issues with analyzer's support for the patterns language feature
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.
P2
A bug or feature request we're likely to work on
This code:
Produces the diagnostic
WarningCode.CONSTANT_PATTERN_NEVER_MATCHES_VALUE_TYPE
at (1).There should not be any warning;
callback
is nullable, sonull
is a possible match.Reproduced with fa3a72f.
The text was updated successfully, but these errors were encountered: