TypeScript/tests/baselines/reference/parserES5ForOfStatement6.errors.txt

11 lines
639 B
Plaintext

tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts(1,17): error TS1188: Only a single variable declaration is allowed in a 'for...of' statement.
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts(1,26): error TS2304: Cannot find name 'X'.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts (2 errors) ====
for (var a = 1, b = 2 of X) {
~
!!! error TS1188: Only a single variable declaration is allowed in a 'for...of' statement.
~
!!! error TS2304: Cannot find name 'X'.
}