]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: instantiate methods when instantiating Named types
authorRobert Griesemer <gri@golang.org>
Wed, 15 Sep 2021 00:25:00 +0000 (17:25 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 21 Sep 2021 00:59:39 +0000 (00:59 +0000)
commitd1fd3eb40e5facd6d056b377a5286b8b3891afd0
treefa379a743c56dc68b6fb7d7d4c2428d8673b7be5
parent2f87b9c942366ddf38f49d34671252663fca7889
cmd/compile/internal/types2: instantiate methods when instantiating Named types

This is a port of CL 349412 from go/types to types2 with
minor adjustments for types2 names, plus CL 350143 (slightly
simplified) to make sure we always get a new signature in
instantiated methods, plus CL 350810 to take care of pointer
receivers. It also contains adjustments to the compiler (provided
by Dan Scales) make it work with the types2 changes.

Change-Id: Ia683a3a8adba3c369701c411d786092f02e77efe
Reviewed-on: https://go-review.googlesource.com/c/go/+/349998
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/noder/types.go
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/decl.go
src/cmd/compile/internal/types2/infer.go
src/cmd/compile/internal/types2/instantiate_test.go
src/cmd/compile/internal/types2/lookup.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/object.go
src/cmd/compile/internal/types2/sizeof_test.go
src/cmd/compile/internal/types2/subst.go