20 lines
880 B
Text
20 lines
880 B
Text
=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck28.ts ===
|
|
function* g(): IterableIterator<(x: string) => number> {
|
|
>g : Symbol(g, Decl(generatorTypeCheck28.ts, 0, 0))
|
|
>IterableIterator : Symbol(IterableIterator, Decl(lib.d.ts, 1672, 1))
|
|
>x : Symbol(x, Decl(generatorTypeCheck28.ts, 0, 33))
|
|
|
|
yield * {
|
|
*[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))
|
|
|
|
yield x => x.length;
|
|
>x : Symbol(x, Decl(generatorTypeCheck28.ts, 3, 17))
|
|
>x.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
>x : Symbol(x, Decl(generatorTypeCheck28.ts, 3, 17))
|
|
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
}
|
|
};
|
|
}
|