mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Crash invoking a @body argument with the wrong number of parameters.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
- Bug with casting anyfault to error.
|
||||
- Lambda / function type would accidentally be processed as a method.
|
||||
- Fix error message when not finding a particular function.
|
||||
- Crash invoking a `@body` argument with the wrong number of parameters.
|
||||
|
||||
### Stdlib changes
|
||||
- Additional init functions for hashmap.
|
||||
|
||||
@@ -2374,6 +2374,7 @@ static bool sema_call_analyse_body_expansion(SemaContext *macro_context, Expr *c
|
||||
if (expressions != vec_size(body_parameters))
|
||||
{
|
||||
PRINT_ERROR_AT(call, "Expected %d parameter(s) to %s.", vec_size(body_parameters), body_decl->name);
|
||||
return false;
|
||||
}
|
||||
Expr **args = call_expr->arguments;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user