mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
typecheck message params when possible
This commit is contained in:
parent
8e0a464ad7
commit
febc57e71b
1 changed files with 15 additions and 0 deletions
|
@ -2597,6 +2597,21 @@ message_expr (expr_t *receiver, keywordarg_t *message)
|
|||
*a = selector;
|
||||
a = &(*a)->next;
|
||||
*a = receiver;
|
||||
|
||||
if (method) {
|
||||
def_t def;
|
||||
expr_t e, *err;
|
||||
|
||||
def.type = method->type;
|
||||
def.name = method->name;
|
||||
e.type = ex_def;
|
||||
e.e.def = &def;
|
||||
e.line = receiver->line;
|
||||
e.file = receiver->file;
|
||||
err = function_expr (&e, args);
|
||||
if (err->type == ex_error)
|
||||
return err;
|
||||
}
|
||||
call = function_expr (send_message (super), args);
|
||||
|
||||
if (call->type == ex_error)
|
||||
|
|
Loading…
Reference in a new issue