TypeScript/tests/baselines/reference/parserForStatement4.errors.txt
2014-09-11 16:11:08 -07:00

9 lines
358 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement4.ts (3 errors) ====
for (a = 1 in b) {
~
!!! error TS2304: Cannot find name 'a'.
~~~~~
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
~
!!! error TS2304: Cannot find name 'b'.
}