26 lines
801 B
Plaintext
26 lines
801 B
Plaintext
=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck28.ts ===
|
|
function* g(): IterableIterator<(x: string) => number> {
|
|
>g : () => IterableIterator<(x: string) => number>
|
|
>IterableIterator : IterableIterator<T>
|
|
>x : string
|
|
|
|
yield * {
|
|
>yield * { *[Symbol.iterator]() { yield x => x.length; } } : any
|
|
>{ *[Symbol.iterator]() { yield x => x.length; } } : { [Symbol.iterator](): IterableIterator<(x: string) => number>; }
|
|
|
|
*[Symbol.iterator]() {
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
|
|
yield x => x.length;
|
|
>yield x => x.length : any
|
|
>x => x.length : (x: string) => number
|
|
>x : string
|
|
>x.length : number
|
|
>x : string
|
|
>length : number
|
|
}
|
|
};
|
|
}
|