diff options
author | Alan Donovan <adonovan@google.com> | 2024-02-20 10:24:21 -0500 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2024-04-18 22:17:27 +0000 |
commit | 01064622a21f921a54c4442ef9f5436c89e998c7 (patch) | |
tree | 70afcc4ef2212f3b90c36d8fc5237faf72e3ce8a /api | |
parent | dfc86e922cd033155339c22aff64e109f6c8cc89 (diff) | |
download | go-01064622a21f921a54c4442ef9f5436c89e998c7.tar.gz go-01064622a21f921a54c4442ef9f5436c89e998c7.zip |
go/types: add Func.Signature method
Unfortunately we can't enforce the repr invariant
that Func.typ != nil without thinking about the
object color invariants. For now, return a trivial
Signature if typ == nil, which should never happen
in bug-free client code.
Fixes golang/go#65772
Change-Id: I7f89c6d8fdc8dcd4b8880572e54bb0ed9b6136eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/565375
Commit-Queue: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/65772.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/65772.txt b/api/next/65772.txt new file mode 100644 index 0000000000..1244df8dd3 --- /dev/null +++ b/api/next/65772.txt @@ -0,0 +1 @@ +pkg go/types, method (*Func) Signature() *Signature #65772 |