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

6 lines
232 B
Plaintext

==== tests/cases/compiler/forInStatement4.ts (1 errors) ====
var expr: any;
for (var a: number in expr) {
~
!!! error TS2404: The left-hand side of a 'for...in' statement cannot use a type annotation.
}