Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: unnecessary warning for any function named error #4753
What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Run go vet on http://play.golang.org/p/hMdAsR9Bcv What is the expected output? No output What do you see instead? foo.go:17:2: no args in error call foo.go:18:2: no args in ErRoR call foo.go:19:2: no args in ERROR call Which version are you using? (run 'go version') go version devel +e2f9b9a58240 Mon Feb 04 00:21:44 2013 -0500 linux/amd64 Please provide any additional information below. issue #4598 addressed this for the very specific case of err.Error(), but go vet shouldn't complain about any of these cases, because they're user-defined functions and there's no reason they should require arguments.