]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: use InstantiateLazy to create instance...
authorRobert Griesemer <gri@golang.org>
Fri, 9 Jul 2021 22:04:15 +0000 (15:04 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 13 Jul 2021 04:40:20 +0000 (04:40 +0000)
commitd0324eb8fbabc6295d0170ba1527517d014a84a4
treee85f2ccbd42779d0e159537e54944ce7226aeb73
parent70f1246a9f861bdfe2ea81db0f1545bd31ff6d49
[dev.typeparams] cmd/compile/internal/types2: use InstantiateLazy to create instance types (cleanup)

This change concentrates the creation is lazily instantiated types
in one place (InstantiateLazy). This should also make it easier to
replace the implementation of lazily instantiated types (e.g. getting
rid of instance types).

Change-Id: I452c463219b466ce79f227c44fb67b79d428842a
Reviewed-on: https://go-review.googlesource.com/c/go/+/333669
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/noder/reader2.go
src/cmd/compile/internal/types2/instance.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/typexpr.go