"and so does zz.X.Fun", of course.
On Tue, Nov 17, 2020 at 10:14 PM Axel Wagner
wrote:
> Hi,
>
> the relevant spec section is https://golang.org/ref/spec#Selectors
>
> A selector f may denote a field or method f of a type T, or it may refer
>> to a field or method f of a nested embedded field
Hi,
the relevant spec section is https://golang.org/ref/spec#Selectors
A selector f may denote a field or method f of a type T, or it may refer to
> a field or method f of a nested embedded field of T. The number of embedded
> fields traversed to reach f is called its depth in T. The depth of a
Here is a playground doc that demonstrates what seems to be strange
behavior regarding promotion of methods.
https://play.golang.org/p/R9M1lAOd9CA
It seems that I can generate a struct a have an ambiguous method by adding
a level of indirection in struct definitions. Or there's something in