콘텐츠로 이동

ZNTC0902: 'await' is not allowed in class static initializer

‘await’ is not allowed in class static initializer

카테고리: 파서: await/yield/JSX/TS

class C { static x = await 1; }

Playground에서 재현하기 →

이 에러의 원인과 해결 방법은 에러 메시지를 참고하세요.