9 lines
No EOL
336 B
Text
9 lines
No EOL
336 B
Text
==== tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement7.ts (3 errors) ====
|
|
for (new foo() in b) {
|
|
~~~~~~~~~
|
|
!!! The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
|
|
~~~
|
|
!!! Cannot find name 'foo'.
|
|
~
|
|
!!! Cannot find name 'b'.
|
|
} |