swc/crates/swc_ecma_parser/tests/tsc/classAbstractClinterfaceAssignability.ts

23 lines
248 B
TypeScript

interface I {
x: number;
}
interface IConstructor {
new (): I;
y: number;
prototype: I;
}
var I: IConstructor;
abstract class A {
x: number;
static y: number;
}
var AA: typeof A;
AA = I;
var AAA: typeof I;
AAA = A;