C error when init struct fields with both local match and function with result #23661
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
We initialize a struct with two fields. Field one with a local
match
and field two with a function returning a result. This combination can't be compiled.Reproduction Steps
Expected Behavior
No C error
Current Behavior
Possible Solution
Workarounds:
Additional Information/Context
No response
V version
V 0.4.9 b91bbad
Environment details (OS name and version, etc.)
https://play.vlang.io/p/6e15c8929d
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: