go/go/analysis
alkiller22 7460b8e10b cmd/vet: fix a bad case of shadow check about redeclaration
`go tools vet -shadow` ignored the case like this form
```golang
func shadowBlock() {
    var a int
    {
        var a = 3
        _ = a
    }
    _ = a
}
```
This commit fix it on "idiomaticRedecl" func, and add the code above in testcase.

Change-Id: I007f8287766f59cd7ded86072ba6bf6743c392be
GitHub-Last-Rev: b8b302b2048d709a39fb17496ba80917f9f4c889
GitHub-Pull-Request: golang/tools#143
Reviewed-on: https://go-review.googlesource.com/c/tools/+/189158
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-09-19 03:18:56 +00:00
..
analysistest all: fix more typos 2019-09-11 15:13:14 +00:00
doc all: fix more typos 2019-09-11 15:13:14 +00:00
internal all: fix more typos 2019-09-11 15:13:14 +00:00
multichecker all: skip tests if required tools are not found 2019-08-30 15:40:57 +00:00
passes cmd/vet: fix a bad case of shadow check about redeclaration 2019-09-19 03:18:56 +00:00
singlechecker go/analysis/singlechecker: use Stderr in flag.Usage 2019-02-14 16:35:53 +00:00
unitchecker go/analysis: change AllObjectFacts and AllPackageFacts to filter facts 2019-08-06 14:34:15 +00:00
analysis.go go/analysis: change AllObjectFacts and AllPackageFacts to filter facts 2019-08-06 14:34:15 +00:00
diagnostic.go go/analysis: remove +experimental build tag from suggested fixes 2019-08-08 19:51:39 +00:00
doc.go go/analysis: copyedit doc.go 2019-09-10 16:19:12 +00:00
validate.go go/analysis: fix typos 2019-09-09 03:06:54 +00:00