Skip to content

Commit

Permalink
doc/go1.18: document union element restriction
Browse files Browse the repository at this point in the history
For golang#47694

Change-Id: I9af871a4a45b002e72629904011aac8f076617f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/372974
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
  • Loading branch information
ianlancetaylor committed Dec 17, 2021
1 parent 3c49583 commit 5299390
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/go1.18.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ <h3 id="generics">Generics</h3>
embedding a type parameter in an interface type is not permitted.
Whether these will ever be permitted is unclear at present.
</li>
<li>
A union element with more than one term may not contain an
interface type with a non-empty method set. Whether this will
ever be permitted is unclear at present.
</li>
</ul>
</p>

Expand Down

0 comments on commit 5299390

Please sign in to comment.