We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
$ go version go version go1.15.7 linux/amd64
Yes.
go env
$ go env
$ cat a.go package main import "os" func foo() (err error) { x, err := os.Getwd() _ = x return } $ go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow $ go vet -vettool=$(which shadow) a.go $
Warning about err being shadowed.
err
Nothing.
The text was updated successfully, but these errors were encountered:
The variable is redeclared not shadowed
closing as not a bug
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Warning about
err
being shadowed.What did you see instead?
Nothing.
The text was updated successfully, but these errors were encountered: