golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/stubmethods/issue61830.txt (about) 1 This test verifies that method stubbing qualifies types relative to the current 2 package. 3 4 -- p.go -- 5 package p 6 7 import "io" 8 9 type B struct{} 10 11 type I interface { 12 M(io.Reader, B) 13 } 14 15 type A struct{} 16 17 var _ I = &A{} //@suggestedfix(re"&A..", re"missing method M", stub) 18 -- @stub/p.go -- 19 @@ -13 +13,5 @@ 20 +// M implements I. 21 +func (a *A) M(io.Reader, B) { 22 + panic("unimplemented") 23 +} 24 +