This commit is contained in:
2026-01-15 23:51:19 +08:00
parent 896459bdfa
commit df84159ed8

View File

@@ -216,7 +216,6 @@ StmtPtr Parser::for_statement() {
StmtPtr initializer = nullptr;
if (!match({TokenType::SEMICOLON})) {
initializer = declaration();
consume(TokenType::SEMICOLON, "Expected ';' after for initializer.");
}
ExprPtr condition = nullptr;