From ff4efbde1cdd3a61f93680afe0e4dd1cac538b3c Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 1 Jul 2023 10:21:29 -0300 Subject: [PATCH] fix --- vlib/v/checker/fn.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/checker/fn.v b/vlib/v/checker/fn.v index c7411b07725718..a35800390e8656 100644 --- a/vlib/v/checker/fn.v +++ b/vlib/v/checker/fn.v @@ -1719,7 +1719,8 @@ fn (mut c Checker) method_call(mut node ast.CallExpr) ast.Type { info.func.params[i] } if c.table.sym(param.typ).kind == .interface_ { - earg_types << param.typ + // cannot hide interface expected type to make possible to pass its interface type automatically + earg_types << param.typ.set_nr_muls(targ.nr_muls()) } else { earg_types << targ }