Skip to content

DartVM: static getters/setters should not be inherited #981

Closed
@DartBot

Description

@DartBot

This issue was originally filed by ief...@unipro.ru


What steps will reproduce the problem?
consider the following test:

class A {
  static get f() {}
}

class C extends A {
  f() {}
}

main() {
  new C().f();
}

What is the expected output? What do you see instead?
Expected: static warning
Actual: compile-time error
Error: line 22 pos 4: function 'f' of class 'C' conflicts with getter 'f' of super class 'A'.

  f() {}

What version of the product are you using? On what operating system?
DartVM r2810

Please provide any additional information below.
co19 tests:
LangSpecTest/07_Classes/1/Instance/Methods/A04/t02
LangSpecTest/07_Classes/1/Instance/Methods/A04/t03

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions