mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
544 B
Plaintext
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;
|
|
|
|
|