Skip to content

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

Closed
@dvyukov

Description

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions