From 125c5a3d69c99378b17f50dc3f05e3cf3a8b9d2b Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 1 Feb 2022 08:37:05 -0800 Subject: [PATCH] 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 --- doc/go1.18.html | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.50.0