prefer_void_to_null
false positive for extension types
#59308
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-false-positive
linter-set-recommended
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Example:
which yields the info:
Since changing
Null
tovoid
would be a compile-time error, extension type representation types might not be the best place to apply that info.(Any time a type has to be a subtype of some other type, suggesting
void
instead ofNull
risks being invalid.)The text was updated successfully, but these errors were encountered: