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

10 lines
386 B
Plaintext
Raw Normal View History

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) {
~
!!! 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
}