mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
780 B
Plaintext
22 lines
780 B
Plaintext
constDeclarations-useBeforeDefinition.ts(2,5): error TS2448: Block-scoped variable 'c1' used before its declaration.
|
|
constDeclarations-useBeforeDefinition.ts(8,5): error TS2448: Block-scoped variable 'v1' used before its declaration.
|
|
|
|
|
|
==== constDeclarations-useBeforeDefinition.ts (2 errors) ====
|
|
{
|
|
c1;
|
|
~~
|
|
!!! error TS2448: Block-scoped variable 'c1' used before its declaration.
|
|
!!! related TS2728 constDeclarations-useBeforeDefinition.ts:3:11: 'c1' is declared here.
|
|
const c1 = 0;
|
|
}
|
|
|
|
var v1;
|
|
{
|
|
v1;
|
|
~~
|
|
!!! error TS2448: Block-scoped variable 'v1' used before its declaration.
|
|
!!! related TS2728 constDeclarations-useBeforeDefinition.ts:9:11: 'v1' is declared here.
|
|
const v1 = 0;
|
|
}
|
|
|