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
s = append(s)
go version
go version go version go1.6 darwin/amd64
go env
$ go env GOARCH="amd64" GOBIN="/Users/tarrant/Code/bin" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/tarrant/Code" GORACE="" GOROOT="/Users/tarrant/Code/src/github.com/golang/go" GOTOOLDIR="/Users/tarrant/Code/src/github.com/golang/go/pkg/tool/darwin_amd64" GO15VENDOREXPERIMENT="1" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common" CXX="clang++" CGO_ENABLED="1"
I accidently wrote something along the lines of the following code. It surprised me that vet didn't report his as an error.
var s []int s = append(s)
https://play.golang.org/p/xxFTTzhl14
I expect vet to report this as an error. This code is a complete noop as far as I know.
The text was updated successfully, but these errors were encountered:
/cc @robpike
Sorry, something went wrong.
Agree. See cmd/vet/README for adoption criteria.
No branches or pull requests
go version
)?go env
)?I accidently wrote something along the lines of the following code. It surprised me that vet didn't report his as an error.
https://play.golang.org/p/xxFTTzhl14
I expect vet to report this as an error. This code is a complete noop as far as I know.
The text was updated successfully, but these errors were encountered: