TypeScript/tests/baselines/reference/generatorTypeCheck27.js
2015-05-04 16:15:55 -07:00

14 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;
}();
}