]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/types2/named.go
go/types, types2: introduce _Alias type node
[gostls13.git] / src / cmd / compile / internal / types2 / named.go
index 81db4d84c19cac669610a023ffbb5af2cc724804..dcfb20592ca302f3e22cbf1be2b05fb614b3d0a2 100644 (file)
@@ -453,7 +453,8 @@ func (t *Named) AddMethod(m *Func) {
        }
 }
 
-func (t *Named) Underlying() Type { return t.resolve().underlying }
+// TODO(gri) Investigate if _Unalias can be moved to where underlying is set.
+func (t *Named) Underlying() Type { return _Unalias(t.resolve().underlying) }
 func (t *Named) String() string   { return TypeString(t, nil) }
 
 // ----------------------------------------------------------------------------