mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
24 lines
316 B
TypeScript
24 lines
316 B
TypeScript
// @target: es6
|
|
class B {
|
|
baz(a: string, y = 10) { }
|
|
}
|
|
class C extends B {
|
|
foo() { }
|
|
baz(a: string, y:number) {
|
|
super.baz(a, y);
|
|
}
|
|
}
|
|
class D extends C {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
foo() {
|
|
super.foo();
|
|
}
|
|
|
|
baz() {
|
|
super.baz("hello", 10);
|
|
}
|
|
}
|