You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go version
go version go1.12.5 darwin/amd64
$ gopls version
golang.org/x/tools/gopls v0.1.1
also reproduces at master:
$ gopls version
golang.org/x/tools/gopls v0.1.1
golang.org/x/tools/gopls@v0.1.2-0.20190708200955-c93f28baaae0
Does this issue reproduce with the latest release?
Yes. Reproduces at master as well.
What operating system and processor architecture are you using (go env)?
Objects for builtin types all have position token.NoPos. We do
not want all objects that have position token.NoPos to be matched
when we are looking for references for this object, so we need to
compare the names of the objects as well.
Fixesgolang/go#32991
Change-Id: I67e7aba9909ebcbb246203ea5c572debf996c792
Reviewed-on: https://go-review.googlesource.com/c/tools/+/185247
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. Reproduces at master as well.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Find references on int, string, bool, and nil.
What did you expect to see?
Only references to the same type.
What did you see instead?
All of [int, string, bool, nil] are returned as a result of references when called on any of these builtin types.
The text was updated successfully, but these errors were encountered: