### Describe the feature When using an empty range with int literals in a for-in loop, I think we should add en error or at least a warning. ```v fn main() { for i in 4 .. 2 { println(i) // unreachable } } ``` ### Use Case Avoid unreachable code ### Proposed Solution Simple update of the `for` checker ### Other Information _No response_ ### Acknowledgements - [x] I may be able to implement this feature request - [ ] This feature might incur a breaking change ### Version used 0.5.1 ### Environment details (OS name and version, etc.) not relevant > [!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 feature
When using an empty range with int literals in a for-in loop, I think we should add en error or at least a warning.
Use Case
Avoid unreachable code
Proposed Solution
Simple update of the
forcheckerOther Information
No response
Acknowledgements
Version used
0.5.1
Environment details (OS name and version, etc.)
not relevant
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.