mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
blockScopedBindingUsedBeforeDef.ts(2,12): error TS2448: Block-scoped variable 'a' used before its declaration.
|
|
blockScopedBindingUsedBeforeDef.ts(2,12): error TS2538: Type '{}' cannot be used as an index type.
|
|
blockScopedBindingUsedBeforeDef.ts(5,12): error TS2448: Block-scoped variable 'a' used before its declaration.
|
|
blockScopedBindingUsedBeforeDef.ts(5,12): error TS2538: Type '{}' cannot be used as an index type.
|
|
blockScopedBindingUsedBeforeDef.ts(8,7): error TS2448: Block-scoped variable 'b' used before its declaration.
|
|
blockScopedBindingUsedBeforeDef.ts(8,7): error TS2538: Type '{}' cannot be used as an index type.
|
|
|
|
|
|
==== blockScopedBindingUsedBeforeDef.ts (6 errors) ====
|
|
// 1:
|
|
for (let {[a]: a} of [{ }]) continue;
|
|
~
|
|
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
|
|
!!! related TS2728 blockScopedBindingUsedBeforeDef.ts:2:16: 'a' is declared here.
|
|
~
|
|
!!! error TS2538: Type '{}' cannot be used as an index type.
|
|
|
|
// 2:
|
|
for (let {[a]: a} = { }; false; ) continue;
|
|
~
|
|
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
|
|
!!! related TS2728 blockScopedBindingUsedBeforeDef.ts:5:16: 'a' is declared here.
|
|
~
|
|
!!! error TS2538: Type '{}' cannot be used as an index type.
|
|
|
|
// 3:
|
|
let {[b]: b} = { };
|
|
~
|
|
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
|
|
!!! related TS2728 blockScopedBindingUsedBeforeDef.ts:8:11: 'b' is declared here.
|
|
~
|
|
!!! error TS2538: Type '{}' cannot be used as an index type. |