github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/quickfix/qf1008/testdata/src/example.com/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-depth.go.golden (about) 1 package pkg 2 3 func fnDepth() { 4 type T4 struct{ F int } 5 type T5 struct{ T4 } 6 type T3 struct{ T5 } 7 type T2 struct{ T4 } 8 9 type T1 struct { 10 T2 11 T3 12 } 13 14 var v T1 15 _ = v.F 16 _ = v.F //@ diag(`could remove embedded field "T2" from selector`) 17 _ = v.T3.F 18 }