TypeScript/tests/baselines/reference/iteratorSpreadInArray7.js
2015-04-08 16:41:56 -07:00

32 lines
552 B
TypeScript

//// [iteratorSpreadInArray7.ts]
var array: symbol[];
array.concat([...new SymbolIterator]);
class SymbolIterator {
next() {
return {
value: Symbol(),
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
//// [iteratorSpreadInArray7.js]
var array;
array.concat([...new SymbolIterator]);
class SymbolIterator {
next() {
return {
value: Symbol(),
done: false
};
}
[Symbol.iterator]() {
return this;
}
}