diff options
author | Rob Findley <rfindley@google.com> | 2021-05-28 11:58:05 -0400 |
---|---|---|
committer | Robert Findley <rfindley@google.com> | 2021-05-30 02:37:38 +0000 |
commit | 1607c2817241bd141af9331a3e6c3148e5cd5d8b (patch) | |
tree | d7098a39fb8c729c392c1c8954612a7d803524b8 /src/go/types/check_test.go | |
parent | 79bda650410c8617f0ae20dc552c6d5b8f8dcfc8 (diff) | |
download | go-1607c2817241bd141af9331a3e6c3148e5cd5d8b.tar.gz go-1607c2817241bd141af9331a3e6c3148e5cd5d8b.zip |
go/types: unexport the GoVersion configuration option for Go 1.17
The GoVersion field was added to types.Config as part of the work on
type parameters. Specifically, it was added to be consistent with
cmd/compile/internal/types2, which requires such an option.
This configuration option is useful, but is also non-trivial and did not
go through the proposal process. Unexport it for Go 1.17; we can create
a proposal to export it for Go 1.18.
Fixes #46296
Change-Id: Id82d8a7096887dcfc404c4d6d8da9c761b316609
Reviewed-on: https://go-review.googlesource.com/c/go/+/323430
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 'src/go/types/check_test.go')
-rw-r--r-- | src/go/types/check_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/check_test.go b/src/go/types/check_test.go index c5dc93eade..9c71277264 100644 --- a/src/go/types/check_test.go +++ b/src/go/types/check_test.go @@ -240,7 +240,7 @@ func checkFiles(t *testing.T, sizes Sizes, goVersion string, filenames []string, // typecheck and collect typechecker errors var conf Config conf.Sizes = sizes - conf.GoVersion = goVersion + SetGoVersion(&conf, goVersion) // special case for importC.src if len(filenames) == 1 { |