]> Cypherpunks repositories - gostls13.git/commit
go/types: restore original assignment error messages
authorRobert Griesemer <gri@golang.org>
Thu, 25 Nov 2021 00:18:57 +0000 (16:18 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 29 Nov 2021 22:02:45 +0000 (22:02 +0000)
commit1970e3e3b7b6c42676acc22071ced887ac68b520
tree6a3f36a9344e2c2ce3007b814651bcc56700b6a8
parentf598e2962d3a358b59faa68471b6ed378fc68806
go/types: restore original assignment error messages

This is the missing portion of the port of CL 351669
from types2 to go/types, now that we have a local flag
to control for compiler error messages.

Mostly a clean port but for adjustments to error reporting
which requires error codes in go/types.

Prerequisite for port of CL 364874.

Change-Id: I5fc8c83003e4396351f42e9adb08f4ebc8a05653
Reviewed-on: https://go-review.googlesource.com/c/go/+/367195
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/assignments.go
src/go/types/expr.go