Interfaces do not inherit static variables #967
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-invalid
Closed as we don't believe the reported issue is generally actionable
This issue was originally filed by [email protected]
What steps will reproduce the problem?
consider the following test:
interface S {
static final int foo = 1;
}
interface I extends S {
}
main() {
Expect.equals(S.foo, I.foo);
}
What is the expected output? What do you see instead?
Expected: successful completion, since this is allowed by the spec.
Actual: Error: line 23 pos 26: unknown static field 'foo' Expect.equals(S.foo, I.foo);
What version of the product are you using? On what operating system?
DartVM r2810
Please provide any additional information below.
co19 test:
LangSpecTest/08_Interfaces/4_Superinterfaces/1/Inheritance/and/Overriding/A01/t02
The text was updated successfully, but these errors were encountered: