TypeScript/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck27.ts
2015-05-04 16:15:55 -07:00

6 lines
144 B
TypeScript

//@target: ES6
function* g(): IterableIterator<(x: string) => number> {
yield * function* () {
yield x => x.length;
} ();
}