We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6298eb commit 3520955Copy full SHA for 3520955
go/types/typeutil/map.go
@@ -261,7 +261,7 @@ func (h Hasher) hashFor(t types.Type) uint32 {
261
return uint32(t.Kind())
262
263
case *aliases.Alias:
264
- return h.Hash(t.Underlying())
+ return h.Hash(aliases.Unalias(t))
265
266
case *types.Array:
267
return 9043 + 2*uint32(t.Len()) + 3*h.Hash(t.Elem())
@@ -462,7 +462,7 @@ func (h Hasher) shallowHash(t types.Type) uint32 {
462
// so there's no need to optimize anything else.
463
switch t := t.(type) {
464
465
- return h.shallowHash(t.Underlying())
+ return h.shallowHash(aliases.Unalias(t))
466
467
case *types.Signature:
468
var hash uint32 = 604171
0 commit comments