[analyzer] Spurious unused_element
#54543
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.
improve-diagnostics
Related to the quality of diagnostic messages
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following library:
This library gives rise to the following diagnostic when processed by the analyzer (6672353):
However, it isn't true that
_E.named
is known to be unused. For example, we can use it from a libraryn010.dart
with the following contents:The point is that
_E
should not be considered to be a private type when it has been made reachable via a type alias.The text was updated successfully, but these errors were encountered: