diff options
| author | Robert Findley <rfindley@google.com> | 2021-09-01 16:51:17 -0400 |
|---|---|---|
| committer | Robert Findley <rfindley@google.com> | 2021-09-02 14:05:36 +0000 |
| commit | 4fb79569d2fb7a0eabc88729f400addb0162f21e (patch) | |
| tree | b97fe5ba0d20ee1e12086e0ab5a81bf7cb6e7f74 /test/codegen/arithmetic.go | |
| parent | b8420baf4610e71f6893f7e8b1ad2b6aa94f3eef (diff) | |
| download | go-4fb79569d2fb7a0eabc88729f400addb0162f21e.tar.xz | |
go/internal/gcimporter: add import tests for type parameters
Add a new test TestImportTypeparamTests that compiles and imports
packages contained in test/typeparam, and compares the resulting package
scope with the scope produced by type-checking directly.
In the process, fix a bug in go/types affecting embedded instances with
more than one type argument. This was uncovered by smoketest.go.
To enable this new test it was easiest to move gcimporter_test.go to an
external test, which required copying the pkgExts variable.
Fixes #48101
Change-Id: Ie4d981bf463e886a8d141809805d184dbbf64607
Reviewed-on: https://go-review.googlesource.com/c/go/+/347070
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>
Diffstat (limited to 'test/codegen/arithmetic.go')
0 files changed, 0 insertions, 0 deletions
