Skip to content

Commit 9d5ea44

Browse files
committed
doc/go1.14: document overlapping interfaces change (update release notes)
Updates #6977. Updates #36878. Change-Id: I40594be85ee0a0d4b35bacc90104568d2b8a4761 Reviewed-on: https://go-review.googlesource.com/c/go/+/216997 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 845a91d commit 9d5ea44

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/go1.14.html

+7-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ <h2 id="introduction">DRAFT RELEASE NOTES — Introduction to Go 1.14</h2>
4141
<h2 id="language">Changes to the language</h2>
4242

4343
<p>
44-
TODO
45-
</p>
46-
47-
<p><!-- CL 187519 -->
48-
TODO: <a href="https://golang.org/cl/187519">https://golang.org/cl/187519</a>: allow embedding overlapping interfaces
44+
Per the <a href="https://github.com/golang/proposal/blob/master/design/6977-overlapping-interfaces.md">overlapping interfaces proposal</a>,
45+
Go 1.14 now permits embedding of interfaces with overlapping method sets:
46+
methods from an embedded interface may have the same names and identical signatures
47+
as methods already present in the (embedding) interface. This solves problems that typically
48+
(but not exclusively) occur with diamond-shaped embedding graphs.
49+
Explicitly declared methods in an interface must remain
50+
<a href="https://tip.golang.org/ref/spec#Uniqueness_of_identifiers">unique</a>, as before.
4951
</p>
5052

5153
<h2 id="ports">Ports</h2>

0 commit comments

Comments
 (0)