]> Cypherpunks repositories - gostls13.git/commit
go/types: add Alias.Rhs
authorAlan Donovan <adonovan@google.com>
Wed, 24 Apr 2024 20:51:20 +0000 (16:51 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 24 Apr 2024 21:50:16 +0000 (21:50 +0000)
commit9b9de261bd66333885adb7b36f1dd133d00cfe13
tree3b938dd035cb2f3036d066969279d397d556ad6a
parente689118852c9c1841ee4c17aeeb3ec3a5242e9a2
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>
api/next/66559.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/go/types/66559.md [new file with mode: 0644]
src/cmd/compile/internal/types2/alias.go
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/api_test.go
src/go/types/alias.go
src/go/types/api_test.go