]> Cypherpunks repositories - gostls13.git/commit
go/types: revert "no 'declared but not used' errors for invalid var decls"
authorRob Findley <rfindley@google.com>
Wed, 17 Feb 2021 01:01:32 +0000 (20:01 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 17 Feb 2021 01:29:54 +0000 (01:29 +0000)
commit2f0da6d9e29d9b9d5a4d10427ca9f71d12bbacc8
tree42ca88c97fc56f04e7ff936bfddcb72172582af2
parent70c37ee7d0eb68777bd81a1acc06d85ee3da4052
go/types: revert "no 'declared but not used' errors for invalid var decls"

This reverts commit CL 289712 (afd67f3). It breaks x/tools tests, and
those tests highlight that perhaps I didn't think through the
repercussions of this change as much as I should have.

Fixes #44316

Change-Id: I5db39b4e2a3714131aa22423abfe0f34a0376192
Reviewed-on: https://go-review.googlesource.com/c/go/+/292751
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/go/types/assignments.go
src/go/types/decl.go
src/go/types/testdata/vardecl.src