]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: fix shadow assignment check with complex rhs
authorKonstantin Shaposhnikov <k.shaposhnikov@gmail.com>
Tue, 20 Oct 2015 16:39:27 +0000 (00:39 +0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 21 Oct 2015 14:27:49 +0000 (14:27 +0000)
commit3c1712db0bd3aa360ad08d9a8e57f6f9b64df6a4
tree502959003b071ca55e9b1669144356d9132277bc
parent9e902f0f3a606e1a09369e0ce8a31e8cac49c605
cmd/vet: fix shadow assignment check with complex rhs

This change fixes shadow assignment check in cases when RHS is not an identifier
or a type assertion.

Fixes #12188

Change-Id: I0940df8d9c237ab8b8d3272eb6895e676c75c115
Reviewed-on: https://go-review.googlesource.com/16038
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/vet/shadow.go
src/cmd/vet/testdata/shadow.go