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

7 lines
318 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement5.ts (2 errors) ====
for (var a: number in X) {
~
!!! error TS2404: The left-hand side of a 'for...in' statement cannot use a type annotation.
~
!!! error TS2304: Cannot find name 'X'.
}