]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow embedding overlapping interfaces
authorMatthew Dempsky <mdempsky@google.com>
Thu, 25 Jul 2019 00:43:31 +0000 (17:43 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 26 Aug 2019 20:21:21 +0000 (20:21 +0000)
commit8d4b685ab5794f0ee8f95a3a75c566653ba4eb5a
tree1d35c266a9f324f159815c15bff83db2c5203dc0
parent97edf7790375604f4b22d30b22b88968ff199ce9
cmd/compile: allow embedding overlapping interfaces

Quietly drop duplicate methods inherited from embedded interfaces if
they have an identical signature to existing methods.

Updates #6977.

Change-Id: I144151cb7d99695f12b555c0db56207993c56284
Reviewed-on: https://go-review.googlesource.com/c/go/+/187519
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/align.go
test/fixedbugs/bug251.go
test/fixedbugs/issue6977.go [new file with mode: 0644]