diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 44b94c923d..aab536b47f 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -852,7 +852,7 @@ pub fn (mut c Checker) call_method(mut call_expr ast.CallExpr) table.Type { } if is_generic { // We need the receiver to be T in cgen. - call_expr.receiver_type = table.t_type + call_expr.receiver_type = table.t_type.derive(method.args[0].typ) } else { call_expr.receiver_type = method.args[0].typ }