Analyzer erroneously rejects use of nullable extension type representation variable via type parameter #57004
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
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
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
The analyzer rejects the following code, but the CFE accepts it:
The analyzer's error message is:
The property 'value' can't be unconditionally accessed because the receiver can be 'null'.
It's true that the receiver (t
) can benull
(because the extension type's representation type is nullable), but that's not a problem; it's still safe to access the propertyvalue
.The text was updated successfully, but these errors were encountered: