13 lines
No EOL
696 B
Text
13 lines
No EOL
696 B
Text
tests/cases/conformance/statements/for-ofStatements/ES5For-of35.ts(1,13): error TS2459: Type 'number' has no property 'x' and no string index signature.
|
|
tests/cases/conformance/statements/for-ofStatements/ES5For-of35.ts(1,23): error TS2459: Type 'number' has no property 'y' and no string index signature.
|
|
|
|
|
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of35.ts (2 errors) ====
|
|
for (const {x: a = 0, y: b = 1} of [2, 3]) {
|
|
~
|
|
!!! error TS2459: Type 'number' has no property 'x' and no string index signature.
|
|
~
|
|
!!! error TS2459: Type 'number' has no property 'y' and no string index signature.
|
|
a;
|
|
b;
|
|
} |