doc: document generalized function type inference (update release notes)

For #77245.

Change-Id: If36098fc36290fe2430d8ef996f35100f8113739
Reviewed-on: https://go-review.googlesource.com/c/go/+/783362
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Robert Griesemer 2026-05-26 13:37:16 -07:00 committed by Gopher Robot
parent ee500cd074
commit acd801c178

View File

@ -10,3 +10,9 @@ the namespace of a particular data type where before one had to declare
such functions with a scope of the entire package.
Note that methods of [interfaces](/ref/spec#Interface_types) may not declare
type parameters nor can interface types be implemented by generic methods.
<!-- go.dev/issue/77245 -->
Function type inference has been [generalized](/issue/77245) to apply in all
contexts where a generic function is [assigned](/ref/spec#Assignability) to a
variable of (or converted to) a matching function type.