8 lines
435 B
Plaintext
8 lines
435 B
Plaintext
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts(2,15): error TS2461: Type 'string[] | number | symbol' is not an array type.
|
|
|
|
|
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts (1 errors) ====
|
|
var union: string | string[] | number | symbol;
|
|
for (let v of union) { }
|
|
~~~~~
|
|
!!! error TS2461: Type 'string[] | number | symbol' is not an array type. |