github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/stub/stub_renamed_import_iface.go (about)

     1  package stub
     2  
     3  import (
     4  	"github.com/powerman/golang-tools/internal/lsp/stub/other"
     5  )
     6  
     7  // This file tests that if an interface
     8  // method references an import from its own package
     9  // that the concrete type does not yet import, and that import happens
    10  // to be renamed, then we prefer the renaming of the interface.
    11  var _ other.Interface = &otherInterfaceImpl{} //@suggestedfix("&otherInterfaceImpl", "refactor.rewrite")
    12  
    13  type otherInterfaceImpl struct{}