[go] go/types, types2: don't panic on NewSignatureType for generic methods

0 views
Skip to first unread message

Mark Freeman (Gerrit)

unread,
Apr 14, 2026, 3:04:47 PM (20 hours ago) Apr 14
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, golang...@luci-project-accounts.iam.gserviceaccount.com, Robert Griesemer, golang-co...@googlegroups.com

Mark Freeman submitted the change

Unreviewed changes

2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
go/types, types2: don't panic on NewSignatureType for generic methods

This lifts a simple assertion that methods cannot have type parameters.
Change-Id: Idae1ce235a5a8922ed932a355e00a68e1b962200
Auto-Submit: Mark Freeman <markf...@google.com>
Reviewed-by: Robert Griesemer <g...@google.com>
Files:
  • M src/cmd/compile/internal/types2/signature.go
  • M src/go/types/signature.go
Change size: S
Delta: 2 files changed, 2 insertions(+), 10 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Idae1ce235a5a8922ed932a355e00a68e1b962200
Gerrit-Change-Number: 766540
Gerrit-PatchSet: 4
Gerrit-Owner: Mark Freeman <markf...@google.com>
Gerrit-Reviewer: Mark Freeman <markf...@google.com>
Gerrit-Reviewer: Robert Griesemer <g...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages