TypeScript/tests/baselines/reference/generatorTypeCheck31.js

14 lines
285 B
TypeScript
Raw Normal View History

2015-05-05 01:15:55 +02:00
//// [generatorTypeCheck31.ts]
function* g2(): Iterator<() => Iterable<(x: string) => number>> {
yield function* () {
yield x => x.length;
} ()
}
//// [generatorTypeCheck31.js]
function* g2() {
yield function* () {
yield x => x.length;
}();
}