mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
32 lines
437 B
TypeScript
32 lines
437 B
TypeScript
// @declaration: true
|
|
// @noImplicitOverride: true
|
|
class B {
|
|
a: string
|
|
}
|
|
|
|
class D extends B {
|
|
constructor(public a: string, public b: string) {
|
|
super();
|
|
}
|
|
}
|
|
|
|
class BB {
|
|
constructor(public a: string) {
|
|
|
|
}
|
|
}
|
|
|
|
class DD extends BB {
|
|
constructor(public a: string) {
|
|
super(a)
|
|
}
|
|
}
|
|
|
|
class DDD extends BB {
|
|
public a: string;
|
|
|
|
constructor(a: string) {
|
|
super(a)
|
|
this.a = a
|
|
}
|
|
} |