Cgen error on multi return using generic reference #21594
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Describe the bug
Reproduction Steps
Expected Behavior
Clean compile and dump output
Current Behavior
Possible Solution
The
&Asset
could be wrapped in a stack-based type, e.g:AssetRef
but it is a little cumbersome to work with manual wrapping and unwrapping like that 🙂Additional Information/Context
No response
V version
V 0.4.6 09eaae5
Environment details (OS name and version, etc.)
Linux, EndeavourOS (rolling, Arch based)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: