You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The program type checks. If I then add a bad mixin application:
class Bad<U> = A0<dynamic, dynamic> with M;
I get this error:
In M::f at file:///Users/ahe/w/dart-sdk/sdk/pkg/front_end/testcases/issue.dart:9:
Incompatible override of #lib1::A::f with #lib1::M::f:
type of parameter v is incompatible
override declares dart.core::num
super method declares #lib1::A::Input
Kernel:
|
| @dart.core::override
|
Source:
|
| num f(num v) => null;
|
Two problems with this error:
There's nothing wrong with the declaration of M.f. The error is actually on the mixin appliction.
The super method doesn't declare v to have the type Input. Someone forgot to perform substitution of type parameters.
The text was updated successfully, but these errors were encountered:
Consider this program:
If I create this as a test case in pkg/front_end/testcases/issue.dart and run:
The program type checks. If I then add a bad mixin application:
I get this error:
Two problems with this error:
There's nothing wrong with the declaration of
M.f
. The error is actually on the mixin appliction.The super method doesn't declare
v
to have the typeInput
. Someone forgot to perform substitution of type parameters.The text was updated successfully, but these errors were encountered: