2015-02-20 01:36:48 +01:00
tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement4.ts(1,10): error TS1190: The variable declaration of a 'for...of' statement cannot have an initializer.
2015-02-24 03:06:38 +01:00
tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement4.ts(1,19): error TS2304: Cannot find name 'X'.
2015-02-18 02:52:55 +01:00
2015-02-24 03:06:38 +01:00
==== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement4.ts (2 errors) ====
2015-02-18 02:52:55 +01:00
for (var a = 1 of X) {
2015-02-20 01:36:48 +01:00
~
!!! error TS1190: The variable declaration of a 'for...of' statement cannot have an initializer.
2015-02-24 03:06:38 +01:00
~
!!! error TS2304: Cannot find name 'X'.
2015-02-18 02:52:55 +01:00
}