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