]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] go/types: eliminate need for unpack and asUnion functions
authorRob Findley <rfindley@google.com>
Wed, 9 Jun 2021 22:41:19 +0000 (18:41 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 17 Jun 2021 02:08:57 +0000 (02:08 +0000)
commit8e14a9cf04fd2a215871f7f68abaa926d8435173
tree19f5f5fc2a556ea225ecf845f26f9b74695c0cec
parentaecfd5c29e3d8cb168c180f4e14e981c58eb599c
[dev.typeparams] go/types: eliminate need for unpack and asUnion functions

This is a straightforward port of CL 323355 to go/types, adjusted for
the different error reporting API in go/types.

Change-Id: I0f9d7ca0e0959e1e214ecd61eb85cc311e6409a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/326679
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/builtins.go
src/go/types/infer.go
src/go/types/subst.go
src/go/types/type.go