mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: generic/vewb fix
This commit is contained in:
parent
c1ccd56119
commit
0a3486b4c5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user