Skip to content

Commit 933e7c3

Browse files
raeperdldez
andauthored
test: Update testcase for recvcheck
Co-authored-by: Ludovic Fernandez <[email protected]>
1 parent 302b638 commit 933e7c3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
//golangcitest:args -Erecvcheck
22
package testdata
33

4+
import "fmt"
5+
46
type Bar struct{} // want `the methods of "Bar" use pointer receiver and non-pointer receiver.`
57

6-
func (b Bar) A() {}
7-
func (b *Bar) B() {}
8+
func (b Bar) A() {
9+
fmt.Println("A")
10+
}
11+
12+
func (b *Bar) B() {
13+
fmt.Println("B")
14+
}

0 commit comments

Comments
 (0)