You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2020. It is now read-only.
Checks that the marked method indeed overrides a function with the same signature somewhere on the prototype chain.
Yet, a syntax error gets thrown when an overridden method does not appear in all ancestors.
SyntaxError: No descriptor matching C#one() was found on the prototype chain.
Did you mean "one"?
classA{publicone(){return1;}}classBextendsA{// Syntax error disappears when the line below is included // public one() { return super.one(); }publictwo(y: number){returny+this.one();}}classCextendsB{
@overridepublicone(){return42;}}constc=newC();console.log(c.two(2));