v
v copied to clipboard
v.gen.c: better alias handling for references/shared
Fixes #17634
Thanks for the fix and sorry for the delay.
There was an unrelated CI error.
There's now a slight conflict, can you fix it please?
I'll merge asap.
<<<<<<< feature/alias-fix
if (node.expr_type.is_ptr() || unwrapped_type.is_ptr() || sym.kind == .chan)
=======
alias_to_ptr := sym.info is ast.Alias && (sym.info as ast.Alias).parent_type.is_ptr()
if (node.expr_type.is_ptr() || sym.kind == .chan || alias_to_ptr)
>>>>>>> master
@medvednikov I think #17691 already solved the bug, so I removed that part of the code and left the extra tests
Thanks, will merge once the tests pass.