-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix Analyzer-CFE integration issue where a mixin extends an abstract class #33678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@scheglov Could you please provide more details? I've written the following example program and it compiles under CFE and its behavior is what I would expect it to be. class M {
void foo() {
print("M.foo");
}
}
class N extends M {
void foo() {
super.foo();
}
}
class B {
void foo() {
print("B.foo");
}
}
class C extends B with N {}
main() {
C c = new C();
c.foo();
} When run in the current master branch, it prints out the following:
|
I'm sorry, it was too global statement. |
Thanks for the clarification, Konstantin! I think this is the part of the spec that the test is checking: link. I've renamed the issue accordingly. Also, here's the discussed test for convenience: abstract class A {
void test();
}
class B extends A {
void test() {
super.test;
}
} It should compile without warnings or errors when the super-mixin feature is enabled. Currently CFE produces a compile-time error. |
I did some research and it seems that the discussed example works in CFE if |
Blocked on #33951. |
Partially addresses #33678. Bug: http://dartbug.com/33678 Change-Id: Id2a5db02899e113129dc6654d262623c48201415 Reviewed-on: https://dart-review.googlesource.com/66380 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Dmitry Stefantsov <[email protected]>
No description provided.
The text was updated successfully, but these errors were encountered: