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

14 lines
781 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement4.ts(1,6): error TS2304: Cannot find name 'a'.
tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement4.ts(1,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement4.ts(1,15): error TS2304: Cannot find name 'b'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement4.ts (3 errors) ====
for (a = 1 in b) {
~
!!! error TS2304: Cannot find name 'a'.
2014-07-13 01:04:16 +02:00
~~~~~
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
2014-07-13 01:04:16 +02:00
~
!!! error TS2304: Cannot find name 'b'.
2014-07-13 01:04:16 +02:00
}