]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types: backport lazy loading changes from CL 336252
authorRob Findley <rfindley@google.com>
Thu, 29 Jul 2021 20:39:49 +0000 (16:39 -0400)
committerRobert Findley <rfindley@google.com>
Fri, 30 Jul 2021 01:20:44 +0000 (01:20 +0000)
commit4480e3b11ab6dcd8d4c6a1e87388f573ff49f429
tree3a4245fd21ade9b7c54e9c05424f0b774f041add
parent27283d208f1757f388ac84d2989e24ee3edcb869
[dev.typeparams] go/types: backport lazy loading changes from CL 336252

When CL 336252 was created (itself a port of CL 335929), types2
tests revealed that lazy expansion of instances was not behaving
correctly with respect to lazy loading of Named types.

This CL ports the fixes from CL 336252 back to go/types.

Change-Id: Iffc6c84a708449633153b800dfb98ff57402893c
Reviewed-on: https://go-review.googlesource.com/c/go/+/338369
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
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/instance.go
src/go/types/instantiate.go
src/go/types/lookup.go
src/go/types/named.go
src/go/types/predicates.go
src/go/types/sizeof_test.go
src/go/types/subst.go
src/go/types/typestring.go