10 lines
446 B
Text
10 lines
446 B
Text
|
tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts(1,1): error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts (1 errors) ====
|
||
|
for (var {x: a = 0, y: b = 1} of [2, 3]) {
|
||
|
~~~
|
||
|
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
|
||
|
a;
|
||
|
b;
|
||
|
}
|