swc/crates/swc_ecma_parser/tests/tsc/override20.ts
2022-02-04 17:08:38 +09:00

35 lines
408 B
TypeScript

// @target: esnext
// @noImplicitOverride: true
const Foo: C1 & C2 =
class {
m1() { }
m2() { }
}
interface I1 {
m1(): void;
}
interface I2 {
m1(): void;
m2(): void;
}
interface C1 {
new(...args: any[]): I1;
}
interface C2 {
new(...args: any[]): I2;
}
export class Bar extends Foo {
m1() {
super.m1();
}
m2() {
super.m2();
}
}