9 lines
191 B
TypeScript
9 lines
191 B
TypeScript
|
//// [generatorTypeCheck7.ts]
|
||
|
interface WeirdIter extends IterableIterator<number> {
|
||
|
hello: string;
|
||
|
}
|
||
|
function* g1(): WeirdIter { }
|
||
|
|
||
|
//// [generatorTypeCheck7.js]
|
||
|
function* g1() { }
|