]> Cypherpunks repositories - gostls13.git/commit
go/types: when type hashing, use placeholders for type parameters
authorRobert Findley <rfindley@google.com>
Wed, 10 Nov 2021 20:53:16 +0000 (15:53 -0500)
committerRobert Findley <rfindley@google.com>
Sat, 13 Nov 2021 00:36:41 +0000 (00:36 +0000)
commitc97d6817a3a47ce7ec30f1eebae48def30b64ad8
treef691e6589a114e5455acbc2f74f43d493713a7e4
parentbfbe5ac9ce58fb59aa38ef69dee4933f20aac039
go/types: when type hashing, use placeholders for type parameters

Type parameter names don't matter for the purposes of generic type
identity, so mask them with numeric placeholders when hashing.

Change-Id: Iacb4c23abecdd733fc292ae13ecac6baa2c5524c
Reviewed-on: https://go-review.googlesource.com/c/go/+/363114
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/typestring.go