golang/go

go/format: turns correct program into incorrect one

dvyukov opened this issue · 1 comments

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
}

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