]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: remove unnecessary tests for x.typ == Typ[Invalid]
authorRobert Griesemer <gri@golang.org>
Wed, 22 Mar 2023 21:04:43 +0000 (14:04 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 28 Mar 2023 14:28:36 +0000 (14:28 +0000)
commit4c49d52439805c248f4a01d529b90b22e821b7d6
tree4181f7668d47145ddd97a8605923404ea113f920
parentabf9b112fd12e05da2d064554d51d140c2871741
go/types, types2: remove unnecessary tests for x.typ == Typ[Invalid]

In the worst case (x.mode != invalid but x.typ == Typ[Invalid]) we
may get unexpected additional errors; but we don't seem to have
any such situations, at least in the existing tests.

Change-Id: I86ae607b4ac9b926264bb6a967627c40e5a86ade
Reviewed-on: https://go-review.googlesource.com/c/go/+/478715
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/assignments.go
src/go/types/assignments.go