22 lines
963 B
Text
22 lines
963 B
Text
=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck26.ts ===
|
|
function* g(): IterableIterator<(x: string) => number> {
|
|
>g : Symbol(g, Decl(generatorTypeCheck26.ts, 0, 0))
|
|
>IterableIterator : Symbol(IterableIterator, Decl(lib.d.ts, 1672, 1))
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 0, 33))
|
|
|
|
yield x => x.length;
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 1, 9))
|
|
>x.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 1, 9))
|
|
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
|
|
yield *[x => x.length];
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 2, 12))
|
|
>x.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 2, 12))
|
|
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
|
|
return x => x.length;
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 3, 10))
|
|
>x : Symbol(x, Decl(generatorTypeCheck26.ts, 3, 10))
|
|
}
|