github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/quickfix/qf1008/testdata/src/example.com/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-multi.go (about)

     1  package pkg
     2  
     3  type MultiLevel struct{ BasicOuter }
     4  
     5  func fnMulti() {
     6  	var multi MultiLevel
     7  	_ = multi.BasicOuter.BasicInner.F1 //@ diag(`could remove embedded field "BasicOuter" from selector`), diag(`could remove embedded field "BasicInner" from selector`), diag(`could simplify selectors`)
     8  	_ = multi.BasicOuter.F1            //@ diag(`could remove embedded field "BasicOuter" from selector`)
     9  	_ = multi.BasicInner.F1            //@ diag(`could remove embedded field "BasicInner" from selector`)
    10  	_ = multi.F1                       // minimal form
    11  }