diff options
Diffstat (limited to 'src/go/types/alias.go')
-rw-r--r-- | src/go/types/alias.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/go/types/alias.go b/src/go/types/alias.go index 963eb92d35..56d2ad0c97 100644 --- a/src/go/types/alias.go +++ b/src/go/types/alias.go @@ -35,11 +35,9 @@ func (a *Alias) Obj() *TypeName { return a.obj } func (a *Alias) Underlying() Type { return unalias(a).Underlying() } func (a *Alias) String() string { return TypeString(a, nil) } -// TODO(adonovan): uncomment when proposal #66559 is accepted. -// -// // Rhs returns the type R on the right-hand side of an alias -// // declaration "type A = R", which may be another alias. -// func (a *Alias) Rhs() Type { return a.fromRHS } +// Rhs returns the type R on the right-hand side of an alias +// declaration "type A = R", which may be another alias. +func (a *Alias) Rhs() Type { return a.fromRHS } // Unalias returns t if it is not an alias type; // otherwise it follows t's alias chain until it |