]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: use []*TypeParam rather than []*TypeName type param lists
authorRobert Findley <rfindley@google.com>
Thu, 19 Aug 2021 17:31:36 +0000 (13:31 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 23 Aug 2021 13:07:58 +0000 (13:07 +0000)
commit2438660602677b1edf5e83a1ba4fdc5dfe9e9dcc
treea03f744895bb06eb0cdf1367cf90acb50d1aa0f5
parent9fe5c7f12274fd4044457e863cbb8bc3ae751dcb
go/types: use []*TypeParam rather than []*TypeName type param lists

Making this change improves type safety slightly, and avoids many
internal type assertions.

Change-Id: I26519b0e57068e944e8243983ae90553d79e59c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/343932
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>
src/go/types/decl.go
src/go/types/infer.go
src/go/types/instantiate.go
src/go/types/named.go
src/go/types/object.go
src/go/types/predicates.go
src/go/types/signature.go
src/go/types/subst.go
src/go/types/typeparam.go
src/go/types/typestring.go
src/go/types/unify.go