Skip to content

gofmt loses semicolons #779

@griesemer

Description

@griesemer
gofmt applied to the following program doesn't reproduce the semicolons and thus makes
the 
program invalid:

package main

func main() {
    switch 0 {
    case 0:
        L0:;
    case 1:
        L1:;
    default:
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions