checker: minor cleanup in fn_call() (#14307)

yuyi 2022-05-06 02:15:54 +08:00 committed by Jef Roosens
parent 055af924d9
commit 11b7dc3a8c
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 1 deletions

View File

@ -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: