From 45fe87c9e3783820c22fb92dc467db4574248eb7 Mon Sep 17 00:00:00 2001 From: yuyi Date: Fri, 6 May 2022 02:15:54 +0800 Subject: [PATCH] checker: minor cleanup in fn_call() (#14307) --- vlib/v/checker/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/fn.v b/vlib/v/checker/fn.v index a68281a7f1..7c5d316134 100644 --- a/vlib/v/checker/fn.v +++ b/vlib/v/checker/fn.v @@ -875,7 +875,7 @@ pub fn (mut c Checker) fn_call(mut node ast.CallExpr, mut continue_check &bool) mut final_param_sym := param_typ_sym mut final_param_typ := param.typ if func.is_variadic && param_typ_sym.info is ast.Array { - final_param_typ = param_typ_sym.array_info().elem_type + final_param_typ = param_typ_sym.info.elem_type final_param_sym = c.table.sym(final_param_typ) } // Note: Casting to voidptr is used as an escape mechanism, so: