Mixin application cannot be used as mixin #8127
Labels
area-test
Cross-cutting test issues (use area- labels for specific failures; not used for package:test).
closed-invalid
Closed as we don't believe the reported issue is generally actionable
Milestone
language/mixin_mixin_test
So, in code
class M1 { foo() => 42; }
typedef M2 = Object with M1;
class S { }
typedef C = S with M2;
Superclass of M2 is "application of M1 to Object" != Object, so compilation error.
The text was updated successfully, but these errors were encountered: