7 lines
No EOL
227 B
Text
7 lines
No EOL
227 B
Text
==== tests/cases/compiler/forInStatement7.ts (1 errors) ====
|
|
var a: number;
|
|
var expr: any;
|
|
for (a in expr) {
|
|
~
|
|
!!! The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
|
|
} |