cmd/vet: use changed types.LookupParent API (fix build)

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/162080043
This commit is contained in:
Robert Griesemer 2014-10-23 09:57:19 -07:00
parent b10dfb99c5
commit ea1477608d
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ func checkShadowing(f *File, ident *ast.Ident) {
}
// obj.Parent.Parent is the surrounding scope. If we can find another declaration
// starting from there, we have a shadowed variable.
shadowed := obj.Parent().Parent().LookupParent(obj.Name())
_, shadowed := obj.Parent().Parent().LookupParent(obj.Name())
if shadowed == nil {
return
}