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/universe.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/universe.go')
-rw-r--r-- | src/go/types/universe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/universe.go b/src/go/types/universe.go index e2b3bd7c18..83c54c8cd3 100644 --- a/src/go/types/universe.go +++ b/src/go/types/universe.go @@ -100,7 +100,7 @@ func defPredeclaredTypes() { { obj := NewTypeName(token.NoPos, nil, "comparable", nil) obj.setColor(black) - ityp := &Interface{obj, nil, nil, nil, true, &TypeSet{true, nil, nil}} + ityp := &Interface{obj, nil, nil, nil, true, &_TypeSet{true, nil, nil}} NewNamed(obj, ityp, nil) def(obj) } |