mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
35 lines
408 B
TypeScript
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();
|
||
|
}
|
||
|
}
|