Files
golang.go/test/typeparam/issue50317.go
Robert Griesemer e84da0405b 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>
2026-03-09 12:16:20 -07:00

16 lines
317 B
Go

// errorcheck
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package p
type S struct{}
func (S) _[_ any]() {}
type _ interface {
m[_ any]() // ERROR "interface method must have no type parameters"
}