github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/quickfix/qf1008/testdata/src/example.com/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-call.go (about) 1 package pkg 2 3 type FunctionCallOuter struct{ FunctionCallInner } 4 type FunctionCallInner struct { 5 F8 func() FunctionCallContinuedOuter 6 } 7 type FunctionCallContinuedOuter struct{ FunctionCallContinuedInner } 8 type FunctionCallContinuedInner struct{ F9 int } 9 10 func fnCall() { 11 var call FunctionCallOuter 12 _ = call.FunctionCallInner.F8().FunctionCallContinuedInner.F9 //@ diag(`could remove embedded field "FunctionCallInner" from selector`), diag(`could remove embedded field "FunctionCallContinuedInner" from selector`), diag(`could simplify selectors`) 13 _ = call.F8().F9 // minimal form 14 }