From: Alan Donovan Date: Tue, 9 Apr 2024 19:35:11 +0000 (-0400) Subject: cmd/api: handle types.Alias X-Git-Tag: go1.23rc1~656 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bdd27c4debfb51fe42df0c0532c1c747777b7a32;p=gostls13.git cmd/api: handle types.Alias This is covered by the existing tests under gotypesalias=1. Change-Id: Ia17f35fe580b745fa4bdaf4689dfe9c2ed6ebc5b Reviewed-on: https://go-review.googlesource.com/c/go/+/577735 LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov Auto-Submit: Alan Donovan --- diff --git a/src/cmd/api/main_test.go b/src/cmd/api/main_test.go index 0a3d44ddd0..b071ef5f99 100644 --- a/src/cmd/api/main_test.go +++ b/src/cmd/api/main_test.go @@ -843,6 +843,9 @@ func (w *Walker) writeType(buf *bytes.Buffer, typ types.Type) { buf.WriteString(s) w.writeType(buf, typ.Elem()) + case *types.Alias: + w.writeType(buf, types.Unalias(typ)) + case *types.Named: obj := typ.Obj() pkg := obj.Pkg()