]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: import instance.expand and subst.go from dev.go2go
authorRob Findley <rfindley@google.com>
Tue, 8 Dec 2020 19:28:21 +0000 (14:28 -0500)
committerRobert Findley <rfindley@google.com>
Mon, 14 Dec 2020 22:33:35 +0000 (22:33 +0000)
commitc8e73489c32d5a45beca3f4810b6be64a2553ddb
tree0257b67474598566a0d0e4cb5853e0f44099713c
parent3a912f279fb6e3b6942a3a6c2449288a33351b69
go/types: import instance.expand and subst.go from dev.go2go

Changes from dev.go2go:
 + A potentially latent bug is fixed when nilling out tparams in an
   instantiated signature (the resulting type could be Typ[Invalid])
 + Support for pointer designation is removed
 + instantiatedHash is updated to use '[]' rather than '()'
 + Several TODOs were added for me to follow-up on, rather than address
   in this CL
 + Error callsites are updated. Deciding on error codes and better error
   messages is punted to a later CL

These changes can be reviewed by comparing with Patchset #1 of this CL.

Change-Id: Ib5869586b8395419013010e2085cab877727d2ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/276253
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/check.go
src/go/types/subst.go [new file with mode: 0644]
src/go/types/type.go
src/go/types/typestring.go