github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/stub/stub_renamed_import_iface.go.golden (about) 1 -- suggestedfix_stub_renamed_import_iface_11_25 -- 2 package stub 3 4 import ( 5 "bytes" 6 renamed_context "context" 7 "github.com/powerman/golang-tools/internal/lsp/stub/other" 8 ) 9 10 // This file tests that if an interface 11 // method references an import from its own package 12 // that the concrete type does not yet import, and that import happens 13 // to be renamed, then we prefer the renaming of the interface. 14 var _ other.Interface = &otherInterfaceImpl{} //@suggestedfix("&otherInterfaceImpl", "refactor.rewrite") 15 16 type otherInterfaceImpl struct{} 17 18 // Get implements other.Interface 19 func (*otherInterfaceImpl) Get(renamed_context.Context) *bytes.Buffer { 20 panic("unimplemented") 21 } 22