cmd/vet: No warning for some statements with no effect #8220
Milestone
Comments
So what's the pattern? A deferred anon function assigns to an enclosing local that is never used within the deferred function, and is not a named return parameter? This isn't necessarily a bug, as it's very hard to prove that the store is dead. Consider: http://play.golang.org/p/5p_IUn56qA defer/panic code is so rare (and so inherently complex) that I doubt it would be worth looking for this pattern in vet. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
by tmadams@google.com:
The text was updated successfully, but these errors were encountered: