]> Cypherpunks repositories - gostls13.git/commit
go/types: underlying type of a type parameter is its constraint interface
authorRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 15:39:36 +0000 (10:39 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 19:50:58 +0000 (19:50 +0000)
commit88474d47ddeb5714a18923048beaa5dafa7196d5
treecaccdceae5f2839ec3e7ccfa22180c5bc2a8260b
parentaa34ea2f4c57ea2648286463ef3f891e49b64fa8
go/types: underlying type of a type parameter is its constraint interface

This is a port of CL 359016 from types2 to go/types. Some of the code
around untyped nil differed (because we have to treat untyped nil
differently in go/types for historical reasons).

Updates #47916

Change-Id: Ifc428ed977bf2f4f84cc831f1a3527156940d7b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/364716
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>
15 files changed:
src/go/types/assignments.go
src/go/types/builtins.go
src/go/types/call.go
src/go/types/conversions.go
src/go/types/expr.go
src/go/types/index.go
src/go/types/lookup.go
src/go/types/operand.go
src/go/types/predicates.go
src/go/types/sizes.go
src/go/types/struct.go
src/go/types/type.go
src/go/types/typeparam.go
src/go/types/typeset.go
src/go/types/typexpr.go