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