]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/types2/typestring.go
go/types, types2: implement Alias proposal (export API)
[gostls13.git] / src / cmd / compile / internal / types2 / typestring.go
index 3c2150273ee85c54276cea8d1af37c9b710afb35..0e0da0f7f69f1d3c3a0344043577a3e711e06994 100644 (file)
@@ -326,13 +326,13 @@ func (w *typeWriter) typ(typ Type) {
                        }
                }
 
-       case *_Alias:
+       case *Alias:
                w.typeName(t.obj)
                if w.ctxt != nil {
                        // TODO(gri) do we need to print the alias type name, too?
-                       w.typ(_Unalias(t.obj.typ))
+                       w.typ(Unalias(t.obj.typ))
                } else {
-                       w.string(fmt.Sprintf(" /* = %s */", _Unalias(t.obj.typ)))
+                       w.string(fmt.Sprintf(" /* = %s */", Unalias(t.obj.typ)))
                }
 
        default: