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

16 lines
293 B
TypeScript
Raw Normal View History

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