mirror of
https://github.com/golang/go
synced 2024-11-19 02:44:44 -07:00
go.tools/ssa: don't print * on type of package-level vars (*ssa.Global)
R=gri, gri CC=golang-dev https://golang.org/cl/26240043
This commit is contained in:
parent
70692d3c5f
commit
677415b351
@ -77,7 +77,7 @@ func main() {
|
||||
//
|
||||
// package main:
|
||||
// func init func()
|
||||
// var init$guard *bool
|
||||
// var init$guard bool
|
||||
// func main func()
|
||||
// const message message = "Hello, World!":untyped string
|
||||
//
|
||||
|
@ -426,7 +426,7 @@ func (p *Package) DumpTo(w io.Writer) {
|
||||
}
|
||||
|
||||
case *Global:
|
||||
fmt.Fprintf(w, " var %-*s %s\n", maxname, name, mem.Type())
|
||||
fmt.Fprintf(w, " var %-*s %s\n", maxname, name, mem.Type().(*types.Pointer).Elem())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user