7 lines
No EOL
226 B
Text
7 lines
No EOL
226 B
Text
==== tests/cases/compiler/forInStatement7.ts (1 errors) ====
|
|
var a: number;
|
|
var expr: any;
|
|
for (a in expr) {
|
|
~
|
|
!!! Variable declarations of a 'for' statement must be of types 'string' or 'any'.
|
|
} |