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.
|
2014-07-19 02:30:06 +02:00
|
|
|
~
|
2014-07-25 23:01:50 +02:00
|
|
|
!!! 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'.
|
|
|
|
}
|