mirror of
https://github.com/golang/go
synced 2024-11-26 02:47:58 -07:00
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>
This commit is contained in:
parent
98ed916369
commit
ade5488d75
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user