1 2 3 4 5 6 7 8 9 10 11 12 13
|
=== tests/cases/compiler/classExpressionAssignment.ts ===
interface A {
>A : Symbol(A, Decl(classExpressionAssignment.ts, 0, 0), Decl(classExpressionAssignment.ts, 5, 5))
prop: string;
>prop : Symbol(A.prop, Decl(classExpressionAssignment.ts, 0, 13))
}
// This is invalid
const A: {new(): A} = class {}
>A : Symbol(A, Decl(classExpressionAssignment.ts, 0, 0), Decl(classExpressionAssignment.ts, 5, 5))
>A : Symbol(A, Decl(classExpressionAssignment.ts, 0, 0), Decl(classExpressionAssignment.ts, 5, 5))
|