9 lines
467 B
Plaintext
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'.
|
|
} |