mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
24 lines
313 B
TypeScript
24 lines
313 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);
|
|
}
|
|
}
|