]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: document overlapping interfaces change (update release notes)
authorRobert Griesemer <gri@golang.org>
Thu, 30 Jan 2020 05:18:16 +0000 (21:18 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 30 Jan 2020 19:31:23 +0000 (19:31 +0000)
Updates #6977.
Updates #36878.

Change-Id: I40594be85ee0a0d4b35bacc90104568d2b8a4761
Reviewed-on: https://go-review.googlesource.com/c/go/+/216997
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.14.html

index 0d9b2b9e84c94641aea44ea978e57b54d65a6a2b..b62fb9e16163ef07841579a3fbcf1b3abb9f3893 100644 (file)
@@ -41,11 +41,13 @@ appropriately.)
 <h2 id="language">Changes to the language</h2>
 
 <p>
-TODO
-</p>
-
-<p><!-- CL 187519 -->
-  TODO: <a href="https://golang.org/cl/187519">https://golang.org/cl/187519</a>: allow embedding overlapping interfaces
+  Per the <a href="https://github.com/golang/proposal/blob/master/design/6977-overlapping-interfaces.md">overlapping interfaces proposal</a>,
+  Go 1.14 now permits embedding of interfaces with overlapping method sets:
+  methods from an embedded interface may have the same names and identical signatures
+  as methods already present in the (embedding) interface. This solves problems that typically
+  (but not exclusively) occur with diamond-shaped embedding graphs.
+  Explicitly declared methods in an interface must remain
+  <a href="https://tip.golang.org/ref/spec#Uniqueness_of_identifiers">unique</a>, as before.
 </p>
 
 <h2 id="ports">Ports</h2>