mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: encapsulate map value type
Passes toolstash -cmp. Change-Id: I83af544974e1e91e0810e13321afb3e665dcdf12 Reviewed-on: https://go-review.googlesource.com/21248 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
bf5f24b98e
commit
093a9a1f56
10 changed files with 40 additions and 33 deletions
|
|
@ -773,6 +773,7 @@ func eqtype1(t1, t2 *Type, assumedEqual map[typePair]struct{}) bool {
|
|||
if !eqtype1(t1.Key(), t2.Key(), assumedEqual) {
|
||||
return false
|
||||
}
|
||||
return eqtype1(t1.Val(), t2.Val(), assumedEqual)
|
||||
}
|
||||
|
||||
return eqtype1(t1.Type, t2.Type, assumedEqual)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue