x/tools/gopls: use RelatedInformation for diagnostics on interface implementation errors #39062
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
See the example in https://play.golang.org/p/2TrSYmBsdLU.
In this case, both the compiler and go/types report error messages on L17 where the error occurs. However, in cases like these, the user is most likely interested in fixing their mistake on L9 by changing the return type of
Hello
. We should add this position in theRelatedInformation
field of diagnostics.The text was updated successfully, but these errors were encountered: