Comptime @[flag]
enum evaluation is wrong
#19925
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Describe the bug
when you declare const enum variable with
@[flag]
, the result of comptime evaluation is wrong.the behavior changes if you omit the enum name.
Reproduction Steps
Expected Behavior
Current Behavior
see above
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.3 8c8df9e
Environment details (OS name and version, etc.)
OS: Arch linux
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: