diff options
| author | Robert Findley <rfindley@google.com> | 2021-09-01 14:15:05 -0400 |
|---|---|---|
| committer | Robert Findley <rfindley@google.com> | 2021-09-02 14:02:42 +0000 |
| commit | b8420baf4610e71f6893f7e8b1ad2b6aa94f3eef (patch) | |
| tree | 770362816ed1e614981c67ae6eb0e688a5647fbe /test/codegen/arithmetic.go | |
| parent | 4591f49938aedbbac7a24225047984479abe72b8 (diff) | |
| download | go-b8420baf4610e71f6893f7e8b1ad2b6aa94f3eef.tar.xz | |
go/internal/gcimporter: add support for importing parameterized types
Port the necessary logic to go/internal/gcimporter from
cmd/compile/internal/importer/iimport.go to support type parameters.
This is a partial port of several compiler CLs: at least CL 319930,
CL 322609, CL 323029, CL 338192, CL 340251, and CL 340989. Because these
ports were not interleaved with the corresponding go/types API changes,
it is easier to just take the latest importer logic.
Notably, the equivalent of types2.AsTypeParam is not used. It should be
unnecessary.
Updates #48101
Change-Id: I938bd8debc3f6a68a3ad8d44c61ef9c5038be7e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/347069
Trust: Robert Findley <rfindley@google.com>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'test/codegen/arithmetic.go')
0 files changed, 0 insertions, 0 deletions
