You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iterating over the values of a alias to an enum results in a c error.
Reproduction Steps
enumStuff {
a
b
}
typeStuffAlias= Stuff
fnmain() {
$for value in StuffAlias.values {
}
}
Expected Behavior
nothing
Current Behavior
================== C compilation error (from tcc): ==============
cc: /tmp/v_1000/test.01K40SVD1PVYZ4T5EG71Y1PEVY.tmp.c:1519: error: 'main__StuffAlias__a' undeclared
=================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
Describe the bug
iterating over the values of a alias to an enum results in a c error.
Reproduction Steps
Expected Behavior
nothing
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.11
Environment details (OS name and version, etc.)
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.