TypeScript/tests/baselines/reference/parserForInStatement7.errors.txt
2014-07-12 17:30:19 -07:00

9 lines
467 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement7.ts (3 errors) ====
for (var a: number = 1, b: string = "" in X) {
~
!!! Only a single variable declaration is allowed in a 'for...in' statement.
~~~~~~~~~~~~~
!!! Variable declarations of a 'for' statement cannot use a type annotation.
~
!!! Cannot find name 'X'.
}