go/go
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
..
analysis cmd/vet: fix a bad case of shadow check about redeclaration 2019-09-19 03:18:56 +00:00
ast go/ast/inspector: fix a small typo 2019-01-10 14:16:07 +00:00
buildutil all: fix more typos 2019-09-11 15:13:14 +00:00
callgraph all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
cfg go/cfg: stop once we've found the fallthrough target 2019-07-19 00:04:45 +00:00
expect go/expect: rewrite the expectation parser 2018-11-30 19:57:46 +00:00
gccgoexportdata go/gccgoexportdata: correctly handle archive files containing string tables 2016-11-09 21:28:38 +00:00
gcexportdata go/gcexportdata: fix example test for changes in net/rpc 2019-04-16 18:06:57 +00:00
internal go/internal/gccgoimporter: update package to match std lib version 2019-09-17 14:45:18 +00:00
loader all: skip more memory-intensive tests on linux-arm 2019-08-30 17:05:41 +00:00
packages go/packages: fix overlay deps for packages with test variants 2019-09-18 21:04:43 +00:00
pointer all: fix more typos 2019-09-11 15:13:14 +00:00
ssa all: fix more typos 2019-09-11 15:13:14 +00:00
types all: fix more typos 2019-09-11 15:13:14 +00:00
vcs go/vcs: ignore "mod" VCS type 2019-05-06 14:53:03 +00:00