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