Skip to content

Commit 2cd8f79

Browse files
committed
formatting test for #449
1 parent 2ffee5c commit 2cd8f79

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

testData/formatting/simple-after.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,24 @@ type x struct {
160160
X interface{} /* adsf*/
161161
X1 interface{} /* adsf*/
162162
}
163+
164+
// comment
165+
166+
// comment
167+
168+
import "A"
169+
170+
// comment
171+
type x a
172+
173+
// comment
174+
var a int = 1
175+
176+
// comment
177+
const a = iota
178+
179+
// comment
180+
func a() {}
181+
182+
// comment
183+
func (p *int) Length() {}

testData/formatting/simple.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,24 @@ type x struct {
155155
X interface { } /* adsf*/
156156
X1 interface { } /* adsf*/
157157
}
158+
159+
// comment
160+
161+
// comment
162+
163+
import "A"
164+
165+
// comment
166+
type x a
167+
168+
// comment
169+
var a int = 1
170+
171+
// comment
172+
const a = iota
173+
174+
// comment
175+
func a() {}
176+
177+
// comment
178+
func (p *int) Length() {}

0 commit comments

Comments
 (0)