]> Cypherpunks repositories - gostls13.git/commit
go/types: implement generic conversions
authorRobert Findley <rfindley@google.com>
Wed, 27 Oct 2021 16:06:46 +0000 (12:06 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 28 Oct 2021 15:35:25 +0000 (15:35 +0000)
commit278b9b3a4c7c01929133737e960335afa18eeec3
treebcaa66e30823aec3f1a80ca5ffaea232bf2d7f4e
parent4f1c9aace00277914e080170237ae381e05683c5
go/types: implement generic conversions

This is a port of 4 CLs from types2: CL 356010, CL 357333, CL 357410,
and CL 357249. These 4 CLs are all related to implementing conversions,
and porting them together saved time (particularly because go/types was
already threading a *reason argument in some places).

Change-Id: Ic89b608d7096b61bfb9f7d71fdae2cc50b0ed70e
Reviewed-on: https://go-review.googlesource.com/c/go/+/359137
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/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/conversions.go
src/go/types/conversions.go
src/go/types/operand.go
src/go/types/testdata/examples/conversions.go2 [new file with mode: 0644]