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;
|
||
|
}
|