Files
golang.go/test/typeparam
Robert Griesemer 06dc5db75d cmd/compile, go/*: move method type parameter checks from parsers to type checkers
The parsers (cmd/compile/internal/syntax and go/parser) always accepted
type parameters on methods for parser robustness but reported an error.

With this change, the parsers accept the type parameters on methods,
and then the type checkers (cmd/compile/internal/types2 and go/types)
complain about them.

Add test case for method type parameters when running the parsers only.
Adjust some existing test cases as needed.

This change is a necessary first step towards implementing generic
methods but does not enable them.

For #77273.

Change-Id: I291fcf0aef0c917c74b32131c88b9e4ed71c5060
Reviewed-on: https://go-review.googlesource.com/c/go/+/738441
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
2026-02-19 12:22:13 -08:00
..
2022-04-21 23:41:49 +00:00
2024-03-26 19:58:28 +00:00
2022-03-07 14:07:18 +00:00
2022-05-10 19:40:04 +00:00
2023-03-08 16:23:09 +00:00
2024-03-26 19:58:28 +00:00
2022-12-03 17:08:51 +00:00
2025-10-29 11:00:23 -07:00