TypeScript/tests/baselines/reference/forInStatement7.errors.txt
2014-09-11 16:11:08 -07:00

7 lines
241 B
Plaintext

==== 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'.
}