]> Cypherpunks repositories - gostls13.git/commit
go/types: minor cleanup of instantiation
authorRobert Findley <rfindley@google.com>
Sun, 12 Sep 2021 03:06:41 +0000 (23:06 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 15 Sep 2021 00:04:48 +0000 (00:04 +0000)
commitcb4e1de0213c836983d1b441386c53e1a66e1b0a
tree6688b0729cdb7b076c2d55ebb3ff30035bea0f24
parenta0f3129466744d22746b93e65ff3714f1507b6a3
go/types: minor cleanup of instantiation

This CL addresses a couple TODOs related to instantiation:
 - factor out resolving the best environment
 - don't eagerly resolve substituted instances

Change-Id: I4a5de7ea7939b6f272991071f591d622dec04b53
Reviewed-on: https://go-review.googlesource.com/c/go/+/349429
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/named.go
src/go/types/subst.go