aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam
diff options
context:
space:
mode:
authorRobert Griesemer <gri@google.com>2026-02-18 14:41:50 -0800
committerGopher Robot <gobot@golang.org>2026-03-09 12:16:20 -0700
commite84da0405bcf64c7dbaafb0afc14388049a9b6fc (patch)
treecee6be97994cdf4ee43f8eb13302e6c9aeda451a /test/typeparam
parentd4ace6b007224ef71348f500f1515510bd2c282c (diff)
downloadgo-e84da0405bcf64c7dbaafb0afc14388049a9b6fc.tar.xz
cmd/compile, go/*: allow generic methods starting with Go 1.27
This only changes the type checkers and tests. Backend compiler changes are not included. For #77273. Change-Id: I8cf0b6fddf6afd6b08b06ba6fdf9c726af4bea8d Reviewed-on: https://go-review.googlesource.com/c/go/+/746820 Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Mark Freeman <markfreeman@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Robert Griesemer <gri@google.com>
Diffstat (limited to 'test/typeparam')
-rw-r--r--test/typeparam/issue50317.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/typeparam/issue50317.go b/test/typeparam/issue50317.go
index a7d0c38484..ecb127c66c 100644
--- a/test/typeparam/issue50317.go
+++ b/test/typeparam/issue50317.go
@@ -8,7 +8,7 @@ package p
type S struct{}
-func (S) _[_ any]() {} // ERROR "method _ must have no type parameters"
+func (S) _[_ any]() {}
type _ interface {
m[_ any]() // ERROR "interface method must have no type parameters"