mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
16 lines
293 B
TypeScript
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)
|
|
}
|
|
}
|