]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: when type hashing, use placeholders for type parameters
authorRobert Griesemer <gri@golang.org>
Tue, 16 Nov 2021 16:31:38 +0000 (08:31 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 17 Nov 2021 04:31:40 +0000 (04:31 +0000)
commit489f58779ce073ef8f6b1505f80580211200ff60
tree364172642216d59a01c6823e8250ceb04d2eaa6b
parenta17a21c190c3e3ea8e88af3e89ccb3c2f101c35b
cmd/compile/internal/types2: when type hashing, use placeholders for type parameters

This is a port of CL 363114 from go/types to types2 with a temporary
work-around in tparamIndex to avoid a crash with the unified build
and test/typeparam/setsimp.go.

Change-Id: Id4805385f21c95b461911b246fb47ee278a84ac9
Reviewed-on: https://go-review.googlesource.com/c/go/+/364336
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/typestring.go
src/cmd/compile/internal/types2/unify.go