ZNTC0902: 'await' is not allowed in class static initializer
ZNTC0902
Section titled “ZNTC0902”‘await’ is not allowed in class static initializer
Category: Parser: Await/Yield/JSX/TS
Reproduction
Section titled “Reproduction”class C { static x = await 1; }How to fix
Section titled “How to fix”See the error message for cause and resolution.