ZNTC0405: Class declaration is not allowed in statement position
ZNTC0405
Section titled “ZNTC0405”Class declaration is not allowed in statement position
Category: Parser: Declaration/Class
Reproduction
Section titled “Reproduction”if (true) class Foo {}How to fix
Section titled “How to fix”See the error message for cause and resolution.