2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/forInStatement7.ts(3,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/forInStatement7.ts (1 errors) ====
|
|
|
|
var a: number;
|
|
|
|
var expr: any;
|
|
|
|
for (a in expr) {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|