CFE: Accept super-bounded type also when top type uses FutureOr
#43053
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
NNBD
Issues related to NNBD Release
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following program:
This program is rejected by
dart
(eb4cf54) as follows:However,
C<FutureOr<Object?>>
is correctly super-bounded becauseFutureOr<Object?>
is a top type. The error seems to occur only withFutureOr
, so it's probably a matter of checking for all top types rather than just some of them when it is considered whether this could be a super-bounded type.The text was updated successfully, but these errors were encountered: