2015-03-25 00:52:00 +01:00
|
|
|
=== tests/cases/conformance/es6/spread/iteratorSpreadInCall3.ts ===
|
|
|
|
foo(...new SymbolIterator);
|
|
|
|
>foo(...new SymbolIterator) : void
|
2015-04-13 22:54:22 +02:00
|
|
|
>foo : (...s: symbol[]) => void, Symbol(foo,Decl(iteratorSpreadInCall3.ts,0,27))
|
2015-03-25 00:52:00 +01:00
|
|
|
>...new SymbolIterator : symbol
|
|
|
|
>new SymbolIterator : SymbolIterator
|
2015-04-13 22:54:22 +02:00
|
|
|
>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator,Decl(iteratorSpreadInCall3.ts,2,32))
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
function foo(...s: symbol[]) { }
|
2015-04-13 22:54:22 +02:00
|
|
|
>foo : (...s: symbol[]) => void, Symbol(foo,Decl(iteratorSpreadInCall3.ts,0,27))
|
|
|
|
>s : symbol[], Symbol(s,Decl(iteratorSpreadInCall3.ts,2,13))
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
class SymbolIterator {
|
2015-04-13 22:54:22 +02:00
|
|
|
>SymbolIterator : SymbolIterator, Symbol(SymbolIterator,Decl(iteratorSpreadInCall3.ts,2,32))
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
next() {
|
2015-04-13 22:54:22 +02:00
|
|
|
>next : () => { value: symbol; done: boolean; }, Symbol(next,Decl(iteratorSpreadInCall3.ts,3,22))
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
>{ value: Symbol(), done: false } : { value: symbol; done: boolean; }
|
|
|
|
|
|
|
|
value: Symbol(),
|
2015-04-13 22:54:22 +02:00
|
|
|
>value : symbol, Symbol(value,Decl(iteratorSpreadInCall3.ts,5,16))
|
2015-03-25 00:52:00 +01:00
|
|
|
>Symbol() : symbol
|
2015-04-13 22:54:22 +02:00
|
|
|
>Symbol : SymbolConstructor, Symbol(Symbol,Decl(lib.d.ts,1186,52),Decl(lib.d.ts,1262,11))
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
done: false
|
2015-04-13 22:54:22 +02:00
|
|
|
>done : boolean, Symbol(done,Decl(iteratorSpreadInCall3.ts,6,28))
|
2015-04-13 21:36:11 +02:00
|
|
|
>false : boolean
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
[Symbol.iterator]() {
|
2015-04-13 22:54:22 +02:00
|
|
|
>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator,Decl(lib.d.ts,1236,31))
|
|
|
|
>Symbol : SymbolConstructor, Symbol(Symbol,Decl(lib.d.ts,1186,52),Decl(lib.d.ts,1262,11))
|
|
|
|
>iterator : symbol, Symbol(SymbolConstructor.iterator,Decl(lib.d.ts,1236,31))
|
2015-03-25 00:52:00 +01:00
|
|
|
|
|
|
|
return this;
|
2015-04-13 22:54:22 +02:00
|
|
|
>this : SymbolIterator, Symbol(SymbolIterator,Decl(iteratorSpreadInCall3.ts,2,32))
|
2015-03-25 00:52:00 +01:00
|
|
|
}
|
|
|
|
}
|