Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls: bug.Report in References on type that has both a field and method of the same name #67978

Closed
adonovan opened this issue Jun 13, 2024 · 2 comments
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@adonovan
Copy link
Member

adonovan commented Jun 13, 2024

In the gopls/0.16.0-pre.1 release , a references query on the XXX method triggers a bug report:

type Foo[T any] struct{ XXX string }
func (Foo[T]) XXX() {} // References on XXX => bug.Report "KeyOf(%s)={} yet func %s is a method"
@adonovan adonovan added the gopls Issues related to the Go language server, gopls. label Jun 13, 2024
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Jun 13, 2024
@gopherbot gopherbot added this to the Unreleased milestone Jun 13, 2024
@gabyhelp
Copy link

Similar Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/605015 mentions this issue: gopls/internal/golang: downgrade assertion in methodsets index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants