21 lines
698 B
Plaintext
21 lines
698 B
Plaintext
=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck27.ts ===
|
|
function* g(): IterableIterator<(x: string) => number> {
|
|
>g : () => IterableIterator<(x: string) => number>
|
|
>x : string
|
|
|
|
yield * function* () {
|
|
>yield * function* () { yield x => x.length; } () : void
|
|
>function* () { yield x => x.length; } () : Generator<(x: string) => number, void, undefined>
|
|
>function* () { yield x => x.length; } : () => Generator<(x: string) => number, void, undefined>
|
|
|
|
yield x => x.length;
|
|
>yield x => x.length : undefined
|
|
>x => x.length : (x: string) => number
|
|
>x : string
|
|
>x.length : number
|
|
>x : string
|
|
>length : number
|
|
|
|
} ();
|
|
}
|