summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-12-14 16:09:36 -0800
committerIan Lance Taylor <iant@golang.org>2021-12-15 00:33:55 +0000
commit9d0ca262bbfa5561910f75e7b7d937b615d69393 (patch)
tree802c0f2853adb1fb133f36219c98ac7e7c02bd3d /doc
parentc948823cb7fc898eafb798ad15655663755d0bc9 (diff)
downloadgo-git-9d0ca262bbfa5561910f75e7b7d937b615d69393.tar.gz
doc/go1.18: mention that embedding a type parameter is forbidden
For #47694 Change-Id: Ibf38eabcb78abc563fcf77e2b566175a18c06fa3 Reviewed-on: https://go-review.googlesource.com/c/go/+/372114 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gopher Robot <gobot@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 59a307a438..9cb3cae20d 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -97,6 +97,12 @@ Do not send CLs removing the interior tags from such phrases.
The Go compiler cannot currently handle type declarations inside generic functions
or methods. We hope to provide support for this feature in Go 1.19.
</li>
+ <li><!-- https://golang.org/issue/49030 -->
+ Embedding a type parameter, or a pointer to a type parameter, as
+ an unnamed field in a struct type is not permitted. Similarly
+ embedding a type parameter in an interface type is not permitted.
+ Whether these will ever be permitted is unclear at present.
+ </li>
</ul>
</p>