]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/go/types/typestring.go
go/types, types2: implement Alias proposal (export API)
[gostls13.git] / src / go / types / typestring.go
index 6eee1af2a81c00c333bd722416035c8123d13ec3..d5623d3d86a0d984aea02797f1f155645267af2a 100644 (file)
@@ -329,13 +329,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: