The embedded name `EqualName` shahows the method called `EqualName`. Rename the `EqualName` interface to `EqualNamer`, and things work.
On Thu, Feb 27, 2025 at 10:07 AM cpu...@gmail.com <cpui...@gmail.com> wrote: > > About every single time I feel like I understand Go interfaces I'm being > taught differently. > > Consider this play: https://play.golang.com/p/qeF4KvaPcwp > > There are 2 single method interfaces. One where interface and method names > are equal, one where they are different. > > I would have expected m to implement both interfaces, but it doesn't. Why is > that? > > Thanks, > Andi > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/golang-nuts/22aaa13f-41d9-4d4c-93c8-455faaef50c2n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAMV2RqpemDXXxAxWNkL%2BH%3DTaSLvfNmjnQD15RX%2BRkrSV329nsg%40mail.gmail.com.