Warn if a class with const constructor can actually never be const constructed #58719
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-lint-request
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
My understanding from flutter/flutter#102460 (comment) and dart-lang/language#1296 is that the following class can actually never be const constructed.
To make this clear, the
const
should be removed from the constructor. Would it be possible to have a lint for that reminds people to not mark it as const?The text was updated successfully, but these errors were encountered: