8 lines
334 B
Plaintext
8 lines
334 B
Plaintext
tests/cases/conformance/es6/for-ofStatements/for-of10.ts(2,6): error TS2322: Type 'number' is not assignable to type 'string'.
|
|
|
|
|
|
==== tests/cases/conformance/es6/for-ofStatements/for-of10.ts (1 errors) ====
|
|
var v: string;
|
|
for (v of [0]) { }
|
|
~
|
|
!!! error TS2322: Type 'number' is not assignable to type 'string'. |