Debian Codegraph @

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

raw
1 package pkg
2
3 type UnexportedSamePackageOuter struct {
4 unexportedSamePackageInner
5 }
6
7 type unexportedSamePackageInner struct {
8 F10 int
9 }
10
11 func fnUnexported() {
12 var unexportedSame UnexportedSamePackageOuter
13 _ = unexportedSame.unexportedSamePackageInner.F10 //@ diag(`could remove embedded field "unexportedSamePackageInner" from selector`)
14 _ = unexportedSame.F10 // minimal form
15 }