6 lines
218 B
Plaintext
6 lines
218 B
Plaintext
==== 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.
|
|
} |