Implement this TODO from the assignment checker:
// TODO: should also check for assignments to struct fields inside methods
// that are on T instead of *T.
Discussion at https://groups.google.com/forum/#!topic/golang-nuts/rSTE4G75QQU/discussion.
This might also be extended to range loops -- see http://play.golang.org/p/FMsMT0dnhf,
linked from issue #8356.
The text was updated successfully, but these errors were encountered:
rsc
changed the title
go.tools/cmd/vet: check for useless assignments to struct fields
x/tools/cmd/vet: check for useless assignments to struct fields
Apr 14, 2015
mvdan
changed the title
x/tools/cmd/vet: check for useless assignments to struct fields
cmd/vet: check for useless assignments to struct fields
May 31, 2018
The text was updated successfully, but these errors were encountered: