TypeScript/tests/cases/compiler/generatorReturnExpressionIsChecked.ts

7 lines
98 B
TypeScript
Raw Normal View History

// @lib: esnext
// @target: esnext
function* f(): Iterator<number> {
return invalid;
}