fix: emit parser error for missing argument list

This commit is contained in:
Young-Flash 2024-02-05 17:50:32 +08:00
parent 0113bc9388
commit c495e3f00f

View File

@ -530,6 +530,9 @@ fn method_call_expr<const FLOAT_RECOVERY: bool>(
generic_args::opt_generic_arg_list(p, true);
if p.at(T!['(']) {
arg_list(p);
} else {
// emit an error when argument list is missing
p.error("expected argument list");
}
m.complete(p, METHOD_CALL_EXPR)
}