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
Search Terms:
ts2417, "static side incorrectly extends"
Code
// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.classbase{staticfoo(v: string){}}classsubextendsbase{staticfoo(v: number){}}
Expected behavior:
It should pass. Actual behavior:
It raised 2417: Class static side 'typeof sub' incorrectly extends base class static side 'typeof base'.
However static functions are never considered "inherited" or "same". base.foo and sub.foo are totally different. Many other languages also allow this behavior. Playground Link: https://www.typescriptlang.org/play?ts=4.0.0-beta
Related Issues:
The text was updated successfully, but these errors were encountered:
TypeScript Version: 4.0.0-beta
Search Terms:
ts2417, "static side incorrectly extends"
Code
Expected behavior:
It should pass.
Actual behavior:
It raised 2417: Class static side 'typeof sub' incorrectly extends base class static side 'typeof base'.
However static functions are never considered "inherited" or "same".
base.foo
andsub.foo
are totally different. Many other languages also allow this behavior.Playground Link:
https://www.typescriptlang.org/play?ts=4.0.0-beta
Related Issues:
The text was updated successfully, but these errors were encountered: