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
|
|
@ -542,8 +542,8 @@ func (p *exporter) typ(t *Type) {
|
|||
|
||||
case TMAP:
|
||||
p.tag(mapTag)
|
||||
p.typ(t.Key()) // key
|
||||
p.typ(t.Type) // val
|
||||
p.typ(t.Key())
|
||||
p.typ(t.Val())
|
||||
|
||||
case TCHAN:
|
||||
p.tag(chanTag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue