[analyzer] add warning when abstract interface class has unused implementation. #55641
Labels
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
type-enhancement
A request for a change that isn't a bug
@lrhn mentioned in dart-lang/language#3736:
Consider the following example:
If there are no classes in the same library that extend this interface then the implementation, the body of
moveForward
and the constructorVehicle
are effectively unreachable code. The analyzer should provide a warning about this, but does not currently.The text was updated successfully, but these errors were encountered: