Fixes #64584.
Change-Id: I756d6026d10f130c1dd5026891b7cc3c640d7f78
Reviewed-on: https://go-review.googlesource.com/c/go/+/548135
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
}
got := S.String()
- const want = "type p.S struct{p.A /* = []int */}"
+ const want = "type p.S struct{p.A}"
if got != want {
t.Fatalf("got %q; want %q", got, want)
}
if w.ctxt != nil {
// TODO(gri) do we need to print the alias type name, too?
w.typ(Unalias(t.obj.typ))
- } else {
- w.string(fmt.Sprintf(" /* = %s */", Unalias(t.obj.typ)))
}
default:
}
got := S.String()
- const want = "type p.S struct{p.A /* = []int */}"
+ const want = "type p.S struct{p.A}"
if got != want {
t.Fatalf("got %q; want %q", got, want)
}
if w.ctxt != nil {
// TODO(gri) do we need to print the alias type name, too?
w.typ(Unalias(t.obj.typ))
- } else {
- w.string(fmt.Sprintf(" /* = %s */", Unalias(t.obj.typ)))
}
default: