]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types: fix the type parameter index in applyTypeFunc
authorRob Findley <rfindley@google.com>
Fri, 11 Jun 2021 16:40:42 +0000 (12:40 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 19 Jul 2021 17:42:35 +0000 (17:42 +0000)
commitc6d3d0b0ad10926fc1952deda913d139ed608cb3
tree6701269be356d7b7110e1d0f3e191d43f7681b49
parent6bf2667d4ef7dee76d308c0ac7acd0d409213b8a
[dev.typeparams] go/types: fix the type parameter index in applyTypeFunc

We should preserve type parameter indices when transforming them using
applyTypeFunc.

Change-Id: Ib75f5cf1a146bd7e6850368fa954c1affcba3ad1
Reviewed-on: https://go-review.googlesource.com/c/go/+/327269
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/types2/builtins.go
src/go/types/builtins.go