Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.5k
stars
2.15k
forks
source link
cannot use constants with values obtained using `$d` as a condition in comptime `if` #21709
Describe the bug
Cannot use constants with values obtained using
$d
as a condition in comptimeif
.Reproduction Steps
Expected Behavior
Current Behavior
Possible Solution
No response
Additional Information/Context
If a literal is used, it works:
V version
V 0.4.6 be9d2b6
Environment details (OS name and version, etc.)
V Playground