Storing a function result value in a variable does not work as expected in an or
block
#21504
Labels
Bug
This tag is applied to issues which reports bugs.
Result Type
Bugs/feature requests, that are related to `!Type`.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
Storing the result value of a function call in a variable behaves differently than directly passing the function multiple times.
Reproduction Steps
No variable usage, expected result:
Variable usage, unexpected result:
Expected Behavior
No difference weather using a variable or not.
Current Behavior
See repro above.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.5 58a8fc6
Environment details (OS name and version, etc.)
macos, linux arm64
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: