Incorrect warnings are issued for overriding methods in dart2js #13487
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
co19 test fails
Language/07_Classes/1_Instance_Methods_A03_t06.dart
It expects no warnings because function types of overriding methods are subtypes of corresponding types of overriden methods according to 15.5 Function Types.
Namely
dynamic f1(Super x, [Sub a, Super b])
is subtype of
int f1(Super x, Super y, [Super a])
and
int f2(Super x, [Sub a, Super b, Whatever c])
is subtype of
int f2(Super x, Super y, [Super a])
dart2js version of issue
The text was updated successfully, but these errors were encountered: