]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: match Go 1.17 compiler error messages more closely
authorRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 00:17:31 +0000 (19:17 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 18:14:06 +0000 (18:14 +0000)
commit17b7604ef62316c7ea69e6a07f90282edcf4c874
treeb865a3cc8119709649fdce9fd48c7eab4acb36ac
parent0555ea3ce997db6e6ef14ba9f55857f359b3fbf2
go/types: match Go 1.17 compiler error messages more closely

Introduce a new constant compilerErrorMessages, which is set to false
for now, so that we can port types2 error handling more precisely. Use
this to (partially) port CL 363436, excluding issue49005.go, which does
not exist in go/types (it was added in a previous CL related to compiler
error messages, that was not ported). I've also included the bugfix from
CL 364034, so that go/types is not broken at this commit.

In subsequent CLs I'll catch up with error handling locations in types2
that use compiler error messages.

Change-Id: I13fd6c43d61b28e0a7a3b0ae8ba785fb8506fbb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/364379
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/assignments.go
src/go/types/check.go
src/go/types/conversions.go
src/go/types/lookup.go
src/go/types/operand.go
src/go/types/testdata/check/expr3.src