mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #696
This commit is contained in:
@@ -9339,6 +9339,14 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
|
|||||||
first_arg_name = str_lit("_");
|
first_arg_name = str_lit("_");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (first_type == nullptr) {
|
||||||
|
error(se->call, "Selector call expressions expect a procedure type for the call with at least 1 parameter");
|
||||||
|
o->mode = Addressing_Invalid;
|
||||||
|
o->type = t_invalid;
|
||||||
|
o->expr = node;
|
||||||
|
return Expr_Stmt;
|
||||||
|
}
|
||||||
|
|
||||||
Operand y = {};
|
Operand y = {};
|
||||||
y.mode = first_arg->tav.mode;
|
y.mode = first_arg->tav.mode;
|
||||||
y.type = first_arg->tav.type;
|
y.type = first_arg->tav.type;
|
||||||
|
|||||||
Reference in New Issue
Block a user