Skip to content

Commit ade5488

Browse files
committed
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 <[email protected]> Run-TryBot: Robert Griesemer <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 98ed916 commit ade5488

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/go1.18.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ <h3 id="generics">Generics</h3>
108108
interface type with a non-empty method set. Whether this will
109109
ever be permitted is unclear at present.
110110
</li>
111+
<li><!-- https://golang.org/issue/50481 -->
112+
A generic type or function currently may declare at most one blank (<code>_</code>)
113+
type parameter name. Note that it is always possible to use an arbitrary new
114+
(unused) identifier in place of a blank type parameter name.
115+
We plan to remove this restriction in Go 1.19.
116+
</li>
111117
</ul>
112118
</p>
113119

0 commit comments

Comments
 (0)