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

9 lines
457 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
~
!!! The left-hand side of a 'for...in' statement cannot use a type annotation.
2014-07-13 01:04:16 +02:00
~
!!! Cannot find name 'X'.
}