Analyzer: When multiple imports provide the same symbol, one import should be marked as "unused" #24073
Labels
devexp-warning
Issues with the analyzer's Warning codes
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
e.g. In Angular, the
package:angular/angular.dart
file exportspackage:di/di.dart
.In the following file, the
Module
symbol is coming from di.dart, but also exported through angular.Currently, the analyzer does not give any hints about unused imports.
However, I would expect angular.dart to be flagged as "unused". angular.dart is not used since
Module
is also available through di.dart.The text was updated successfully, but these errors were encountered: