mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: minor cleanup in ref_or_deref_arg() (#18713)
This commit is contained in:
parent
36577eed09
commit
049fa3c70f
@ -2173,7 +2173,7 @@ fn (mut g Gen) ref_or_deref_arg(arg ast.CallArg, expected_type ast.Type, lang as
|
||||
g.expr(arg.expr)
|
||||
return
|
||||
} else if arg_sym.kind == .interface_ && exp_sym.kind == .interface_
|
||||
&& (arg.expr is ast.Ident || arg.expr is ast.SelectorExpr) {
|
||||
&& arg.expr in [ast.Ident, ast.SelectorExpr] {
|
||||
g.write('&/*iface*/')
|
||||
g.expr(arg.expr)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user