13 lines
279 B
TypeScript
13 lines
279 B
TypeScript
//// [generatorTypeCheck27.ts]
|
|
function* g(): IterableIterator<(x: string) => number> {
|
|
yield * function* () {
|
|
yield x => x.length;
|
|
} ();
|
|
}
|
|
|
|
//// [generatorTypeCheck27.js]
|
|
function* g() {
|
|
yield* function* () {
|
|
yield x => x.length;
|
|
}();
|
|
}
|