6 lines
No EOL
218 B
Text
6 lines
No EOL
218 B
Text
==== tests/cases/compiler/forInStatement4.ts (1 errors) ====
|
|
var expr: any;
|
|
for (var a: number in expr) {
|
|
~
|
|
!!! The left-hand side of a 'for...in' statement cannot use a type annotation.
|
|
} |