Squashing compound bugs

This commit is contained in:
Krzosa Karol
2022-06-11 09:59:03 +02:00
parent b76b9c605a
commit 3b4e14a089
2 changed files with 5 additions and 1 deletions

View File

@@ -168,7 +168,7 @@ parse_expr_call(Ast_Expr *left, Token_Kind close_kind){
item = parse_expr();
}
if(item && index) compiler_error(token, "Both index and name are present, that is invalid");
if(name && index) compiler_error(token, "Both index and name are present, that is invalid");
if(close_kind == TK_OpenParen && index) compiler_error(token, "Lambda calls can't have indexed arguments");
Ast_Call_Item *item_comp = ast_call_item(token, name, index, item);