]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] go/types, types2: clarify documentation with respect to gener...
authorRobert Findley <rfindley@google.com>
Wed, 9 Mar 2022 16:35:10 +0000 (11:35 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 11 Mar 2022 00:00:29 +0000 (00:00 +0000)
commitc6b5b7e6e5cc5f406f6c4ec88305ad801117e8d6
tree0d2f80f989b8acccc6eab80f6254ee7889874862
parent36d32da19fedf6ef047f58d69818e5b2011c30b6
[release-branch.go1.18] go/types, types2: clarify documentation with respect to generic types

Address several areas where documentation was inaccurate or unclear
regarding generic types. Also prefer the use of the word 'generic' over
'parameterized', and add additional documentation for the use of
SetConstraint.

For #49593

Change-Id: Iccac60d1b3e2c45a57a3d03b3c10984293af57dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/391154
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit e189b5e06d4831025758c0b152838fa1a0375525)
Reviewed-on: https://go-review.googlesource.com/c/go/+/391356
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/typeparam.go
src/go/types/api.go
src/go/types/eval.go
src/go/types/instantiate.go
src/go/types/named.go
src/go/types/typeparam.go