Debian Codegraph @

quickfix/qf1008/testdata/go1.0/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-call.go

raw
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`)
13 _ = call.F8().F9 // minimal form
14 }