6 lines
188 B
TypeScript
6 lines
188 B
TypeScript
//// [generatorTypeCheck8.ts]
|
|
interface BadGenerator extends Iterator<number>, Iterable<string> { }
|
|
function* g3(): BadGenerator { }
|
|
|
|
//// [generatorTypeCheck8.js]
|
|
function* g3() { }
|