12 lines
No EOL
493 B
Text
12 lines
No EOL
493 B
Text
tests/cases/conformance/statements/for-ofStatements/ES5For-of8.ts(4,1): error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
|
|
|
|
|
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of8.ts (1 errors) ====
|
|
function foo() {
|
|
return { x: 0 };
|
|
}
|
|
for (foo().x of ['a', 'b', 'c']) {
|
|
~~~
|
|
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
|
|
var p = foo().x;
|
|
} |