42 lines
952 B
Text
42 lines
952 B
Text
=== tests/cases/conformance/es6/spread/iteratorSpreadInCall3.ts ===
|
|
foo(...new SymbolIterator);
|
|
>foo(...new SymbolIterator) : void
|
|
>foo : (...s: symbol[]) => void
|
|
>...new SymbolIterator : symbol
|
|
>new SymbolIterator : SymbolIterator
|
|
>SymbolIterator : typeof SymbolIterator
|
|
|
|
function foo(...s: symbol[]) { }
|
|
>foo : (...s: symbol[]) => void
|
|
>s : symbol[]
|
|
|
|
class SymbolIterator {
|
|
>SymbolIterator : SymbolIterator
|
|
|
|
next() {
|
|
>next : () => { value: symbol; done: boolean; }
|
|
|
|
return {
|
|
>{ value: Symbol(), done: false } : { value: symbol; done: boolean; }
|
|
|
|
value: Symbol(),
|
|
>value : symbol
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
|
|
done: false
|
|
>done : boolean
|
|
>false : boolean
|
|
|
|
};
|
|
}
|
|
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
|
|
return this;
|
|
>this : SymbolIterator
|
|
}
|
|
}
|