Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 1, 2023
1 parent d8e1e9d commit ff4efbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ff4efbd

Please sign in to comment.