aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2022-01-07 10:06:53 -0800
committerRobert Griesemer <gri@golang.org>2022-01-07 18:20:24 +0000
commitade5488d75fefc4afd72f2f6090f4c823c93d083 (patch)
tree24e1623c24496669bf3fec7378891e805407023e /doc
parent98ed91636926b4029bbbbb8c2ab4b66ee15a5734 (diff)
downloadgo-ade5488d75fefc4afd72f2f6090f4c823c93d083.tar.gz
go-ade5488d75fefc4afd72f2f6090f4c823c93d083.zip
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 <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.18.html6
1 files changed, 6 insertions, 0 deletions
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.
</li>
+ <li><!-- https://golang.org/issue/50481 -->
+ A generic type or function currently may declare at most one blank (<code>_</code>)
+ 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.
+ </li>
</ul>
</p>