Open
Description
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.