mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Support iterators in spread element
This commit is contained in:
1 parent
b7f2990305
commit
2288946afc
1 file changed
+1
-1
@@ -5913,7 +5913,7 @@ module ts {
|
||||
function checkSpreadElementExpression(node: SpreadElementExpression, contextualMapper?: TypeMapper): Type {
|
||||
let arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper);
|
||||
if (languageVersion >= ScriptTarget.ES6) {
|
||||
// Check for iterable, not yet implemented
|
||||
return checkIteratedType(arrayOrIterableType, node.expression) || unknownType;
|
||||
}
|
||||
|
||||
if (isArrayLikeType(arrayOrIterableType)) {
|
||||
|
||||
Reference in new issue
Block a user