C error from optional anonymous functions and if str_var == 'some_string'
comparison
#19478
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
Bug is generated when setting an option field that is an anonymous function. The error only appears when using the if statement below. Doing
println(value == 'unlimited')
works.Reproduction Steps
Expected Behavior
Expected code to compile with no output.
Current Behavior
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: