aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/universe.go
diff options
context:
space:
mode:
authorRob Findley <rfindley@google.com>2021-08-04 10:45:16 -0400
committerRobert Findley <rfindley@google.com>2021-08-10 21:49:07 +0000
commit0f34a92df76a7946e55d437264bbf5459b30f302 (patch)
tree84fbcfbed644319e24b596c04917e88bdf336b7b /src/go/types/universe.go
parent40ba119e3f990fd570ec928307e92a5b6a76bd0e (diff)
downloadgo-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.go2
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)
}