diff options
author | Alan Donovan <adonovan@google.com> | 2024-04-24 16:51:20 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-24 21:50:16 +0000 |
commit | 9b9de261bd66333885adb7b36f1dd133d00cfe13 (patch) | |
tree | 3b938dd035cb2f3036d066969279d397d556ad6a /doc | |
parent | e689118852c9c1841ee4c17aeeb3ec3a5242e9a2 (diff) | |
download | go-9b9de261bd66333885adb7b36f1dd133d00cfe13.tar.gz go-9b9de261bd66333885adb7b36f1dd133d00cfe13.zip |
go/types: add Alias.Rhs
This method returns the type on the right-hand side of an
alias declaration such as type L = R.
Fixes #66559
Change-Id: I396f2d999680ad251f47cdde20856ae20fc1c40a
Reviewed-on: https://go-review.googlesource.com/c/go/+/581615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/next/6-stdlib/99-minor/go/types/66559.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/go/types/66559.md b/doc/next/6-stdlib/99-minor/go/types/66559.md new file mode 100644 index 0000000000..fbaf39191e --- /dev/null +++ b/doc/next/6-stdlib/99-minor/go/types/66559.md @@ -0,0 +1,3 @@ +The [Alias] type now has an [Rhs] method that returns the type on the +right-hand side of its declaration: given `type A = B`, the `Rhs` of A +is B. ([#66559](/issue/12345)) |