瀏覽代碼

Merge pull request #2970 from jakubtomsu/check-blank-ident-proc-params

Fix procedure parameter checking with blank identifiers
gingerBill 1 年之前
父節點
當前提交
490c8daedd
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/check_expr.cpp

+ 0 - 3
src/check_expr.cpp

@@ -5606,9 +5606,6 @@ gb_internal CallArgumentError check_call_arguments_internal(CheckerContext *c, A
 	for (isize i = 0; i < pt->param_count; i++) {
 		if (!visited[i]) {
 			Entity *e = pt->params->Tuple.variables[i];
-			if (is_blank_ident(e->token)) {
-				continue;
-			}
 			if (e->kind == Entity_Variable) {
 				if (e->Variable.param_value.kind != ParameterValue_Invalid) {
 					ordered_operands[i].mode = Addressing_Value;