From: Robert Griesemer Date: Tue, 1 Feb 2022 16:37:05 +0000 (-0800) Subject: doc/go1.18: document restrictions for real, imag, complex X-Git-Tag: go1.18rc1~133 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=125c5a3d69c99378b17f50dc3f05e3cf3a8b9d2b;p=gostls13.git doc/go1.18: document restrictions for real, imag, complex For #47694. For #50912. For #50937. Change-Id: I3fae6c8dbbd61a45e669b8fb0c18ac76f2183963 Reviewed-on: https://go-review.googlesource.com/c/go/+/381967 Trust: Robert Griesemer Run-TryBot: Robert Griesemer TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.18.html b/doc/go1.18.html index c93c91ebbc..daf8755b28 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -97,6 +97,11 @@ 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. +
  • + The Go compiler currently does not accept arguments of type parameter type with + the predeclared functions real, imag, and complex. + We hope to remove this restriction in Go 1.19. +
  • Embedding a type parameter, or a pointer to a type parameter, as an unnamed field in a struct type is not permitted. Similarly