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

16 lines
293 B
TypeScript

// @declaration: true
// @noImplicitOverride: true
class B {
public baz: number = 1;
constructor(public foo: string, public bar: number) {
}
}
class D extends B {
public bar: number = 1
constructor(public foo: string, public baz: number) {
super(foo, 42)
}
}