36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
=== tests/cases/conformance/es6/spread/iteratorSpreadInArray7.ts ===
|
|
var array: symbol[];
|
|
>array : Symbol(array, Decl(iteratorSpreadInArray7.ts, 0, 3))
|
|
|
|
array.concat([...new SymbolIterator]);
|
|
>array.concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
|
>array : Symbol(array, Decl(iteratorSpreadInArray7.ts, 0, 3))
|
|
>concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
|
>SymbolIterator : Symbol(SymbolIterator, Decl(iteratorSpreadInArray7.ts, 1, 38))
|
|
|
|
class SymbolIterator {
|
|
>SymbolIterator : Symbol(SymbolIterator, Decl(iteratorSpreadInArray7.ts, 1, 38))
|
|
|
|
next() {
|
|
>next : Symbol(next, Decl(iteratorSpreadInArray7.ts, 3, 22))
|
|
|
|
return {
|
|
value: Symbol(),
|
|
>value : Symbol(value, Decl(iteratorSpreadInArray7.ts, 5, 16))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
|
|
done: false
|
|
>done : Symbol(done, Decl(iteratorSpreadInArray7.ts, 6, 28))
|
|
|
|
};
|
|
}
|
|
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
return this;
|
|
>this : Symbol(SymbolIterator, Decl(iteratorSpreadInArray7.ts, 1, 38))
|
|
}
|
|
}
|