2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/forInStatement2.ts (1 errors) ====
|
|
|
|
var expr: number;
|
|
|
|
for (var a in expr) {
|
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2407: The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|