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
tests/language/override_field_test.dart incorrectly asserts that fields cannot be overridden #3751
Labels
Comments
I'm guessing from the summary that the test claims this code is illegal? We have changed the spec so that overriding fields is permitted. So the code is correct as it stands, and any test that denies that is wrong. Set owner to @peter-ahe-google. |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
This was fixed in 99c505e. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe this test is incorrect:
class A {
int instanceFieldInA;
}
class B extends A {
int instanceFieldInA;
}
main() {
var x = new B();
}
Gilad, could you please advice and assign to me when you have an answer?
The text was updated successfully, but these errors were encountered: