inline if statement generates C error with struct option fields #19477
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
C error is produced when assigning string in if clause and
none
in else clause to option field of struct with inline if statements.Reproduction Steps
Expected Behavior
Expected code to compile. No output.
Current Behavior
Generates C error. Edit: forgot to add the C error 😅
Possible Solution
No response
Additional Information/Context
No response
V version
V full version: V 0.4.1 68cbf27.24278d8
Environment details (OS name and version, etc.)
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: