Continue parsing paramslist until we've found the closing parenthesis
This commit is contained in:
@@ -25,4 +25,10 @@ PARSE_TEST("Parse class with empty definition", "class foobar {}", {
|
||||
REQUIRE(diags.GetMessages().empty());
|
||||
REQUIRE(script->GetStatements().size() == 1);
|
||||
REQUIRE(script->GetStatements()[0].get()->GetKind() == Parser::ParsedStatementKind::Class);
|
||||
})
|
||||
})
|
||||
|
||||
PARSE_TEST("Parse function without definition", "void foobar(int8 par1, bool &in x);", {
|
||||
REQUIRE(diags.GetMessages().empty());
|
||||
REQUIRE(script->GetStatements().size() == 1);
|
||||
REQUIRE(script->GetStatements()[0].get()->GetKind() == Parser::ParsedStatementKind::Func);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user