### Describe the bug ```v enum Stuff { a b } type StuffAlias = Stuff fn do_generic[T](t T) { $for value in T.values { } } fn main() { do_generic(StuffAlias.a) } ``` ### Reproduction Steps Run this program ### Expected Behavior Compilation ### Current Behavior C error ### Possible Solution Fix in the cgen stage ### Additional Information/Context _No response_ ### V version Not related ### Environment details (OS name and version, etc.) Not related > [!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.
Describe the bug
Reproduction Steps
Run this program
Expected Behavior
Compilation
Current Behavior
C error
Possible Solution
Fix in the cgen stage
Additional Information/Context
No response
V version
Not related
Environment details (OS name and version, etc.)
Not related
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.