Compile-time macro confuses function names #19489
Labels
Bug
This tag is applied to issues which reports bugs.
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
@spytheman on discord told me that in this bug the compile-time step confuses function named value for a value it's prividing named value
I suppose, some kind of way to hint to the compiler that I actually want to reference my function instead of whatever it is providing would be useful.
The proposed
fixworkaround is to change my function name from "value" to something else, which works, however it'd be nice if there was a better way of doing things.Reproduction Steps
Expected Behavior
Current Behavior
Possible Solution
As I said before: @spytheman suggested changing function name to avoid collision which works
Additional Information/Context
No response
V version
V 0.4.1 12ee3fa
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: