From: Robert Griesemer Date: Fri, 7 Jan 2022 18:06:53 +0000 (-0800) Subject: doc/go1.18: document type parameter name restriction X-Git-Tag: go1.18beta2~143 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ade5488d75fefc4afd72f2f6090f4c823c93d083;p=gostls13.git doc/go1.18: document type parameter name restriction For #47694. Change-Id: I00862f987a0ff9f71e0295ce4320e6f9a6a4332f Reviewed-on: https://go-review.googlesource.com/c/go/+/376414 Trust: Robert Griesemer Run-TryBot: Robert Griesemer Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.18.html b/doc/go1.18.html index 06a75643fc..03d2b4e346 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -108,6 +108,12 @@ Do not send CLs removing the interior tags from such phrases. interface type with a non-empty method set. Whether this will ever be permitted is unclear at present. +
  • + A generic type or function currently may declare at most one blank (_) + type parameter name. Note that it is always possible to use an arbitrary new + (unused) identifier in place of a blank type parameter name. + We plan to remove this restriction in Go 1.19. +