Skip to content

Wrong interface indents after formatting #1871

Open
@zolotov

Description

@zolotov

Given

package main

type x struct {
    I1 interface{}
    I2 interface {
    }
    i1 interface {
        x() int
    }
}

Reformat code

Expected: nothing changes

Actual:

package main

type x struct {
    I1 interface{}
    I2 interface {
       }
    i1 interface {
           x() int
       }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions