x/tools/gopls: completion includes 'any' in invalid contexts #47669
When built with Go 1.18, gopls completion results erroneously include the new predefined type
We should exclude it whenever we are not completing constraints.
The text was updated successfully, but these errors were encountered:
The predeclared 'any' type is only valid when completing constraints. We should support that properly, but for now exclude it from results so that our completion tests don't fail on Go 1.18. For golang/go#47669 Change-Id: I7852f844684a6c03da90bf367d45d732e5d1e9bb Reviewed-on: https://go-review.googlesource.com/c/tools/+/341850 Trust: Robert Findley <email@example.com> Run-TryBot: Robert Findley <firstname.lastname@example.org> gopls-CI: kokoro <email@example.com> TryBot-Result: Go Bot <firstname.lastname@example.org> Reviewed-by: Matthew Dempsky <email@example.com>