1
0
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:
joe-conigliaro 2020-06-06 17:06:11 +10:00
parent c1ccd56119
commit 0a3486b4c5
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

@ -852,7 +852,7 @@ pub fn (mut c Checker) call_method(mut call_expr ast.CallExpr) table.Type {
} }
if is_generic { if is_generic {
// We need the receiver to be T in cgen. // 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 { } else {
call_expr.receiver_type = method.args[0].typ call_expr.receiver_type = method.args[0].typ
} }