Analyzer fails to recognize subtype relation in F-bounded type parameter. #34728
Labels
dart-model-analyzer-spec
Issues with the analyzer's implementation of the language spec
legacy-area-analyzer
Use area-devexp instead.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
Example:
The analyzer reports the following error:
However, since
X
<:A<X>
, by covariance of generics we also know thatA<X>
<:A<A<X>>
, and by transitivity we know thatX
<:A<A<X>>
, so the error is incorrect.The code runs without issues on the CFE.
(Might be related to #34726).
The text was updated successfully, but these errors were encountered: