TypeScript/tests/baselines/reference/forInStatement2.errors.txt

9 lines
436 B
Plaintext
Raw Normal View History

tests/cases/compiler/forInStatement2.ts(2,15): 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
==== tests/cases/compiler/forInStatement2.ts (1 errors) ====
var expr: number;
for (var a in expr) {
~~~~
!!! 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
}