]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: document restrictions for real, imag, complex
authorRobert Griesemer <gri@golang.org>
Tue, 1 Feb 2022 16:37:05 +0000 (08:37 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Feb 2022 18:15:07 +0000 (18:15 +0000)
For #47694.
For #50912.
For #50937.

Change-Id: I3fae6c8dbbd61a45e669b8fb0c18ac76f2183963
Reviewed-on: https://go-review.googlesource.com/c/go/+/381967
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index c93c91ebbc88a1c978ce01a03e3155c9dc2e2be1..daf8755b285929d7580e36022c83b01981e96517 100644 (file)
@@ -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.
     </li>
+    <li><!-- https://golang.org/issue/50937 -->
+      The Go compiler currently does not accept arguments of type parameter type with
+      the predeclared functions <code>real</code>, <code>imag</code>, and <code>complex</code>.
+      We hope to remove this restriction 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