/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/typeparam/issue50317.go
15 строк
317 B
Robert Griesemer
cmd/compile, go/*: allow generic methods starting with Go 1.27
09 мар 2026, 22:16
09 мар 2026, 22:16
e84da04
Код
Авторство
О чём код?
// 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" }