package main type S1 struct { }
func (*S1) f() {} type S2 struct { S1 } // var _ = S1.f // S1.f undefined (type S1 has no method f) // var _ = S2.f // S2.f undefined (type S2 has no method f) var _ = (*S2).f // ok! func main() {} -- 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. For more options, visit https://groups.google.com/d/optout.