Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For range-expression doesn't support if condition #1243

Closed
xushiwei opened this issue Jun 6, 2022 · 0 comments
Closed

For range-expression doesn't support if condition #1243

xushiwei opened this issue Jun 6, 2022 · 0 comments
Labels
Milestone

Comments

@xushiwei
Copy link
Member

xushiwei commented Jun 6, 2022

The following program sample.gop triggers an unexpected result

for i <- :10, i%3 == 0 {
    println i
}

Expected result

0
3
6
9

Got

0
1
2
3
4
5
6
7
8
9

Gop Version

gop v1.1.0-alpha1-256-gf3285c6 darwin/amd64

Additional Notes

No response

@xushiwei xushiwei added the bug label Jun 6, 2022
@xushiwei xushiwei added this to the Go+ v1.1 milestone Jun 6, 2022
xushiwei added a commit that referenced this issue Jun 6, 2022
for rangeExpr support if condition (fix #1243)
visualfc added a commit to visualfc/gop that referenced this issue Jun 6, 2022
xushiwei added a commit that referenced this issue Jun 7, 2022
cl: fix #1243 for rangeExpr if pos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant