Different tear-offs are wrongly identical in analyzer #47267
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
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
Consider the following code
According to @eernstg
MyList
is not a proper rename, so if we tear off a generic function then it gets the identity forMyList
, and it's never identical to any tearoff of aList
constructor.However, when we pass actual type arguments in the tearoff, we get the fully expanded type alias (whether or not it's a proper rename, that doesn't matter). That is,
MyList<int>.filled
is identical toList<int>.filled
.So we should expect that
v1
andv2
are identical, butv1
andv3
are not identical, so there's an issue for the analyzer.The text was updated successfully, but these errors were encountered: