Files
tsgo/testdata/baselines/reference/submodule/compiler/es5ExportDefaultClassDeclaration3(target=es2015).errors.txt

20 lines
544 B
Plaintext

es5ExportDefaultClassDeclaration3.ts(1,21): error TS2449: Class 'C' used before its declaration.
==== es5ExportDefaultClassDeclaration3.ts (1 errors) ====
var before: C = new C();
~
!!! error TS2449: Class 'C' used before its declaration.
!!! related TS2728 es5ExportDefaultClassDeclaration3.ts:3:22: 'C' is declared here.
export default class C {
method(): C {
return new C();
}
}
var after: C = new C();
var t: typeof C = C;