test: add method_call_missing_argument_list error test

This commit is contained in:
Young-Flash 2024-02-05 17:52:50 +08:00
parent c495e3f00f
commit 864c3d5880
3 changed files with 66 additions and 0 deletions

View file

@ -532,6 +532,12 @@ fn method_call_expr<const FLOAT_RECOVERY: bool>(
arg_list(p);
} else {
// emit an error when argument list is missing
// test_err method_call_missing_argument_list
// fn func() {
// foo.bar::<>
// foo.bar::<i32>;
// }
p.error("expected argument list");
}
m.complete(p, METHOD_CALL_EXPR)