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

11 lines
621 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement4.ts(1,10): error TS1189: The variable declaration of a 'for...in' statement cannot have an initializer.
tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement4.ts(1,19): error TS2304: Cannot find name 'X'.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement4.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
for (var a = 1 in X) {
~
!!! error TS1189: The variable declaration of a 'for...in' statement cannot have an initializer.
2014-07-13 01:04:16 +02:00
~
!!! error TS2304: Cannot find name 'X'.
2014-07-13 01:04:16 +02:00
}