]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: add additional documentation for Underlying
authorRob Findley <rfindley@google.com>
Tue, 14 May 2024 19:19:48 +0000 (19:19 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 15 May 2024 20:03:31 +0000 (20:03 +0000)
commit3d80761531a6eb02934bc6b7236d77723f0b54fe
tree8093fffcfdab59b2973280538275d85ad0f8b4c6
parentc4772d30bfbed6cfbfdf92066990b5c6dc4065bb
go/types, types2: add additional documentation for Underlying

The concept of an underlying type has become more complicated with the
addition of TypeParam and Alias types. Update the documentation to
clarify that it strips off Named, TypeParam, and Alias types, and to
reference the spec.

Fixes #65774

Change-Id: I40a8efe15b45591b95068acbf4ef9eae17a4cef1
Reviewed-on: https://go-review.googlesource.com/c/go/+/585456
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/syntax/type.go
src/cmd/compile/internal/types2/alias.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/typeparam.go
src/go/types/alias.go
src/go/types/named.go
src/go/types/type.go
src/go/types/typeparam.go