Custom iterator struct constructor does not work with for x in Iterator{} {
#21179
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Unit: Parser
Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg /v/misc/2024_04_03__18/a.v
What did you expect to see?
a compiled program, that when run, prints the numbers from 9 to 0 in descending order
What did you see instead?
Note that doing this instead, works:
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.
The text was updated successfully, but these errors were encountered: