x/tools/gopls: regression in implementationsV2 for concrete methods #58506
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
This example applies the "implementations" query to method A.F. The correct answer includes both references to B.F, one in package b and one in package d. However, the new ("v2") implementation of "implementations" fails to report the reference from package b.
The reason is that v2 has completely different algorithms for the local and global cases (with disjoint results), and when it discovers that type A satisfies interface B and thus that it must include B.F among the global search targets, it forgets to search package b for local references to B.F.
The text was updated successfully, but these errors were encountered: