Dartanalyzer 2.0 incorrectly throws type_argument_not_matching_bounds error for super-bounded types in preview-dart-2 mode #32903
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
Dart SDK Version:
2.0.0-dev.48.0
OS:
Windows 10
Dart 2.0 Super Bounded Types Spec reads:
This means that constructions like
C<dynamic> c0 = ...
now should be allowed in strong mode for bounded types likeclass C<X extends C<X>>
.However, this is not so. For example, the following code sample:
produces
type_argument_not_matching_bounds
error:The text was updated successfully, but these errors were encountered: