x/tools/gopls: improve completion in binary expressions #37163
Closed
Labels
Milestone
Comments
Change https://golang.org/cl/246362 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When completing in situations like:
We detect the expected type as "bool" since that is the type of "foo == bar". That causes "bool" candidates to dominate the rankings. However, if your intention is to type "baz.blub == 123", bool candidates are counterproductive, and often obscure the candidate you want.
I propose we get rid of the binary operator type inference for
||
and&&
so all candidates are easily completable./cc @stamblerre
The text was updated successfully, but these errors were encountered: