콘텐츠로 이동

ZNTC0401: Function declaration is not allowed in statement position

Function declaration is not allowed in statement position

카테고리: 파서: 선언/클래스

if (true) function foo() {}

Playground에서 재현하기 →

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