x/tools/gopls: conflicting interfaces states in 'missing method' error instead of 'ambiguous' #47381
Labels
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What did you do?
play.golang.org/p/9aHL-z_QbuL
Here is the code as well:
What did you expect to see?
A gopls error suggesting there is a conflict or ambiguity because the interface
DogBarker
have a conflictingBark()
method from the two interfacesDog
andBarker
. The error can be on the variablevar _ ConflictingDog = (*Huski)(nil)
as it is on play.golang.org, or perhaps on the interfaceDogBarker
directly although I'm not sure about side consequences of this.What did you see instead?
Build info
Extra info
Thanks!!
The text was updated successfully, but these errors were encountered: