* WIP * If method type derives solely from the global iterator or generator type, use its type arguments * Add test for problem fixed as side effect
10 lines
136 B
TypeScript
10 lines
136 B
TypeScript
// @strict: true
|
|
// @target: esnext
|
|
|
|
interface I1 extends Iterator<0, 1, 2> {}
|
|
|
|
function* f1(): I1 {
|
|
const a = yield 0;
|
|
return 1;
|
|
}
|