]> Cypherpunks repositories - gostls13.git/commit
vet: check for useless assignments.
authorDavid Symonds <dsymonds@golang.org>
Tue, 5 Mar 2013 22:55:04 +0000 (09:55 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 5 Mar 2013 22:55:04 +0000 (09:55 +1100)
commita22361d68d6d93ab2b06e4b608e19796e033218b
treee89d84a7839a892e4b5049e7a6e862baec13d486
parent8cf6e75e2ad03396e1cc05088b73dfe7753c8696
vet: check for useless assignments.

The only check so far is for self-assignments of the form "expr = expr",
but even that found one instance in the standard library.

R=r, adg, mtj, rsc
CC=golang-dev
https://golang.org/cl/7455048
src/cmd/vet/assign.go [new file with mode: 0644]
src/cmd/vet/main.go
src/cmd/vet/test_assign.go [new file with mode: 0644]