Type must have a '[Symbol.iterator]()' method
error for ...x
where x: T[]
with "target": "es2018"
.
#22768
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
TypeScript Version: 2.8.0-dev.20180321
Search Terms: Symbol.Iterator, compilerOptions, compilerOptions.lib, es6, es2018, default, lib
Code
tsconfig.json:
Expected behavior:
No errors
Actual behavior:
No errors when compiled with
"target": "es6"
intsconfig.json
Playground Link:
The issue is not reproducible in the playground as it does not take a
tsconfig
.Related Issues:
None as far as I know.
The text was updated successfully, but these errors were encountered: