How should avoid_setters_without_getters handle extension types? #59307
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
linter-new-language-feature
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
See https://dart.dev/tools/linter-rules/avoid_setters_without_getters. What if we have this:
Should
avoid_setters_without_getters
fire on this extension type? I think not... But maybe? Imagine a more realistic example where C subclasses another class D, and the extension type exposes (implements) D, andget x
is declared on D.Also imagine an example where E implements another extension type, and
get x
is declared on that extension type.The text was updated successfully, but these errors were encountered: