mirror of
https://github.com/golang/go.git
synced 2026-08-02 20:44:20 +08:00
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:
parent
ee500cd074
commit
acd801c178
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user