]> Cypherpunks repositories - gostls13.git/commit
go/types: match types2 error msg formatting for conversion errors
authorRobert Griesemer <gri@golang.org>
Wed, 17 Aug 2022 22:06:56 +0000 (15:06 -0700)
committerRobert Griesemer <gri@google.com>
Thu, 18 Aug 2022 21:22:06 +0000 (21:22 +0000)
commit5fcddf3997a89c1f82935cf65d919b7ef03df2c5
tree6ebce46c8d83c335b0af32ebe3497c575bc0b82f
parent0eb56ca4688caed10c422f1d2d3b364d75970b8c
go/types: match types2 error msg formatting for conversion errors

This resolves a TODO. Also, it allows go/types and types2 to use
identical test files in testdata/spec, a prerequisition for sharing
them eventually.

For #54511.

Change-Id: Ia9d11b15ada237c18b6ce8f72732f70134a1a06f
Reviewed-on: https://go-review.googlesource.com/c/go/+/424537
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/go/types/conversions.go
src/go/types/testdata/spec/conversions.go