1
0
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:
yuyi 2023-07-01 17:07:53 +08:00 committed by GitHub
parent 36577eed09
commit 049fa3c70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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