no error given when $for item in enum.fields
and $for item in struct.values
#19844
Labels
Bug
This tag is applied to issues which reports bugs.
Nicer V Errors
Bugs/feature requests, related to improving V error messages.
Describe the bug
There's no error given if comptime for is used incorrectly in situations like:
Reproduction Steps
Write the above code and compile it
Expected Behavior
An error like
cannot use enum.fields
andcannot use struct.values
Current Behavior
No output or error
Possible Solution
A checker error for each of these
Additional Information/Context
No response
V version
Latest
Environment details (OS name and version, etc.)
Pop OS
The text was updated successfully, but these errors were encountered: