github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/quickfix/qf1008/testdata/src/example.com/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-recursive.go (about) 1 package pkg 2 3 type T1 struct { 4 Next *T1 5 } 6 7 type T2 struct { 8 F int 9 *T2 10 T3 11 } 12 13 type T3 struct { 14 F2 int 15 } 16 17 func (*T1) Foo() {} 18 func (*T2) Foo() {} 19 20 func fn() { 21 var t1 T1 22 var t2 T2 23 _ = t1.Next.Foo 24 _ = t2.T2.Foo 25 _ = t2.T2.F 26 _ = t2.T3.F2 //@ diag(`could remove embedded field "T3" from selector`) 27 }