Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/source: test references bug on struct{p.T}
This change adds a regression test for bug in gopls' references operation applied to the T identifier in an embedded struct field such as struct{p.T): instead of reporting references to T, it reports references to package name p. This is a consequence of go/types bug golang/go#60372, which sets the position of the struct field types.Var to that of the ast.Field syntax (p) not the type name (T). The bug was fixed in go1.21. Updates golang/go#60372 Fixes golang/go#60369 Change-Id: Ibabe885ea689b30d966dbf7e51f8c25e44a6ce1c Reviewed-on: https://go-review.googlesource.com/c/tools/+/497495 gopls-CI: kokoro <noreply+kokoro@google.com> Run-TryBot: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information