mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
29 lines
500 B
TypeScript
29 lines
500 B
TypeScript
// @noImplicitOverride: true
|
|
// @target: esnext
|
|
|
|
class Foo {
|
|
property = 1
|
|
static staticProperty = 2
|
|
}
|
|
|
|
class SubFoo extends Foo {
|
|
property = 42;
|
|
staticProperty = 42;
|
|
}
|
|
|
|
class StaticSubFoo extends Foo {
|
|
static property = 42;
|
|
static staticProperty = 42;
|
|
}
|
|
|
|
class Intermediate extends Foo {}
|
|
|
|
class Derived extends Intermediate {
|
|
property = 42;
|
|
staticProperty = 42;
|
|
}
|
|
|
|
class StaticDerived extends Intermediate {
|
|
static property = 42;
|
|
static staticProperty = 42;
|
|
} |