diff options
author | Rob Findley <rfindley@google.com> | 2021-08-04 10:45:16 -0400 |
---|---|---|
committer | Robert Findley <rfindley@google.com> | 2021-08-10 21:49:07 +0000 |
commit | 0f34a92df76a7946e55d437264bbf5459b30f302 (patch) | |
tree | 84fbcfbed644319e24b596c04917e88bdf336b7b /src/go/types/builtins.go | |
parent | 40ba119e3f990fd570ec928307e92a5b6a76bd0e (diff) | |
download | go-0f34a92df76a7946e55d437264bbf5459b30f302.tar.gz go-0f34a92df76a7946e55d437264bbf5459b30f302.zip |
[dev.typeparams] go/types: don't expose the TypeSet API for 1.18
The TypeSet API is very new and probably not necessary to expose outside
of go/types, at least for 1.18. Users can check whether a type is
contained within a type set via Implements, and can access the
representation of the type set via the embedded Unions.
Change-Id: Icc7355285785bee5aa7a8fe74052bcb0fedcd0a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/341289
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/builtins.go')
-rw-r--r-- | src/go/types/builtins.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/builtins.go b/src/go/types/builtins.go index aae05438cd..c73d94658a 100644 --- a/src/go/types/builtins.go +++ b/src/go/types/builtins.go @@ -844,7 +844,7 @@ func (check *Checker) applyTypeFunc(f func(Type) Type, x Type) Type { ptyp := check.NewTypeParam(tpar, &emptyInterface) // assigns type to tpar as a side-effect ptyp.index = tp.index tsum := newUnion(rtypes, tildes) - ptyp.bound = &Interface{complete: true, tset: &TypeSet{types: tsum}} + ptyp.bound = &Interface{complete: true, tset: &_TypeSet{types: tsum}} return ptyp } |