mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
716 B
Plaintext
13 lines
716 B
Plaintext
for-inStatementsDestructuring2.ts(1,10): error TS2491: The left-hand side of a 'for...in' statement cannot be a destructuring pattern.
|
|
for-inStatementsDestructuring2.ts(1,11): error TS2339: Property 'a' does not exist on type 'String'.
|
|
for-inStatementsDestructuring2.ts(1,14): error TS2339: Property 'b' does not exist on type 'String'.
|
|
|
|
|
|
==== for-inStatementsDestructuring2.ts (3 errors) ====
|
|
for (var {a, b} in []) {}
|
|
~~~~~~
|
|
!!! error TS2491: The left-hand side of a 'for...in' statement cannot be a destructuring pattern.
|
|
~
|
|
!!! error TS2339: Property 'a' does not exist on type 'String'.
|
|
~
|
|
!!! error TS2339: Property 'b' does not exist on type 'String'. |