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

8 lines
117 B
TypeScript

abstract class A { }
// var AA: typeof A;
var AAA: new() => A;
// AA = A; // okay
AAA = A; // error.
AAA = "asdf";