swc/crates/swc_ecma_parser/tests/tsc/override13.ts

29 lines
500 B
TypeScript
Raw Normal View History

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