ZNTC0906: 'yield' expression is not allowed in formal parameters
ZNTC0906
Section titled “ZNTC0906”‘yield’ expression is not allowed in formal parameters
Category: Parser: Await/Yield/JSX/TS
Reproduction
Section titled “Reproduction”function* g(x = yield 1) {}How to fix
Section titled “How to fix”See the error message for cause and resolution.