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

cl: fix #1243 for rangeExpr if pos #1256

Merged
merged 1 commit into from
Jun 7, 2022
Merged

Conversation

visualfc
Copy link
Member

@visualfc visualfc commented Jun 6, 2022

// main.gop

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

// go run main.gop bug

main.gop:2: invalid line number: 0

this PR fixed but gop fmt this file to

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

@xushiwei xushiwei merged commit c4b9074 into goplus:main Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants