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
Test attempts to validate static warning, but is not valid #11575
Comments
Same for language/abstract_factory_constructor_test/none It also generates warnings for abstract members in concrete classes. |
language/abstract_syntax_test/none |
language/get_set_syntax_test/none |
language/implicit_this_test/none Abstract method in concrete class, as all tests in this issue. And also not initialized final instance variable. abstract class Interface { |
language/interface_test/none |
language/syntax_test/none |
cc @peter-ahe-google. |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
Concerning |
language/abstract_factory_constructor_test/00
// Exercises issue #2282, factory constructors in abstract classes should
// not emit a static type warning
class B extends A1 {
B() {}
method() {}
}
class A1 {
A1() {}
method(); // Abstract.
factory A1.make() { return new B(); }
}
class A2 {
method(); // Abstract.
A2.make() {}
}
main() {
new A1.make();
new A2.make(); /// 00: static type warning
}
The text was updated successfully, but these errors were encountered: