Debian Codegraph @

gopls/internal/test/marker/testdata/quickfix/stubmethods/issue64078.txt

raw
1 This test verifies that the named receiver is generated.
2
3 -- p.go --
4 package p
5
6 type A struct{}
7
8 func (aa *A) M1() {
9 panic("unimplemented")
10 }
11
12 type I interface {
13 M1()
14 M2(aa string)
15 M3(bb string)
16 M4() (aa string)
17 }
18
19 var _ I = &A{} //@quickfix(re"&A..", re"missing method M", stub)
20 -- @stub/p.go --
21 @@ -5 +5,15 @@
22 +// M2 implements [I].
23 +func (*A) M2(aa string) {
24 + panic("unimplemented")
25 +}
26 +
27 +// M3 implements [I].
28 +func (aa *A) M3(bb string) {
29 + panic("unimplemented")
30 +}
31 +
32 +// M4 implements [I].
33 +func (*A) M4() (aa string) {
34 + panic("unimplemented")
35 +}
36 +