swc/crates/swc_ecma_parser/tests/tsc/override13.ts
2022-02-04 17:08:38 +09:00

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;
}