github.com/jhump/golang-x-tools@v0.0.0-20220218190644-4958d6d39439/internal/lsp/testdata/stub/stub_renamed_import_iface.go (about)

     1  package stub
     2  
     3  import (
     4  	"github.com/jhump/golang-x-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{}