]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: use orig. compiler error message for a shift error
authorRobert Griesemer <gri@golang.org>
Wed, 19 Jan 2022 01:52:16 +0000 (17:52 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 19 Jan 2022 20:54:49 +0000 (20:54 +0000)
commit1efc5815dd316953a8f37e58f7e3542a6aac3adf
treed5e78a7aa933b40240e5c53b050a3cf379c57dbc
parenta4d3c73ac3cc109ac2088beadf4d51987a60c625
go/types, types2: use orig. compiler error message for a shift error

Slightly better for cases such as string(1 << s).
Leaves type-checker tests alone for now because
there are multiple dozens.

For #45117.

Change-Id: I47b314c713fabe424c2158674bf965416a8a6f5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/379274
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/expr.go
src/go/types/expr.go
test/fixedbugs/issue28079c.go