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

6 lines
144 B
TypeScript

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