Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/gopls: no definition found on type switch implicit #32584

Closed
suzmue opened this issue Jun 12, 2019 · 1 comment
Closed

x/tools/cmd/gopls: no definition found on type switch implicit #32584

suzmue opened this issue Jun 12, 2019 · 1 comment
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls.
Milestone

Comments

@suzmue
Copy link
Contributor

suzmue commented Jun 12, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.5 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOOS="linux"

What did you do?

Clicked "Go To Definition" on "y" on the following code (in vscode:

switch y := x.(type) {
  default: fmt.Println()
}

What did you expect to see?

Go to definition (at the same location).

What did you see instead?

An error was returned: "no definition found for y"

@gopherbot gopherbot added this to the Unreleased milestone Jun 12, 2019
@gopherbot gopherbot added the gopls Issues related to the Go language server, gopls. label Jun 12, 2019
@gopherbot
Copy link

Change https://golang.org/cl/182462 mentions this issue: internal/lsp: fix references for type switch vars

@golang golang locked and limited conversation to collaborators Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls.
Projects
None yet
Development

No branches or pull requests

2 participants