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

go/format: turns correct program into incorrect one #11274

Closed
dvyukov opened this issue Jun 18, 2015 · 1 comment
Closed

go/format: turns correct program into incorrect one #11274

dvyukov opened this issue Jun 18, 2015 · 1 comment

Comments

@dvyukov
Copy link
Member

dvyukov commented Jun 18, 2015

go fmt changed the following correct Go program:

package main

func main() {
    x := 0 /**/; y := 1
    _, _ = x, y
}

into the following incorrect Go program:

package main

func main() {
    x := 0 /**/ y := 1
    _, _ = x, y
}
@griesemer griesemer added this to the Unplanned milestone Jun 18, 2015
@griesemer
Copy link
Contributor

Should probably be fixed but is not urgent. This bug has been around for years.

@ianlancetaylor ianlancetaylor modified the milestones: Go1.6, Unplanned Jun 19, 2015
@griesemer griesemer modified the milestones: Unplanned, Go1.6 Sep 29, 2015
@golang golang locked and limited conversation to collaborators Nov 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants