9 lines
No EOL
457 B
Text
9 lines
No EOL
457 B
Text
==== 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.
|
|
~
|
|
!!! Cannot find name 'X'.
|
|
} |