Skip to content

feat: override syntax for class members, assemblyscript can simply ignore it #1916

Open
@trusktr

Description

@trusktr

F.e.

class Base {
  method() {...}
}

class Foo extends Base {
  override method() {...}
}

This is useful with TS tooling because it can detect errors like this:

class Base {
  methodRenamed() {...}
}

class Foo extends Base {
  override method() {...} // This member cannot have an 'override' modifier because it is not declared in the base class 'Base'.
}

otherwise method in Foo would silently pass along as a new method with no hint that it should be re-named.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions