☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
quickfix
/
qf1008
/
testdata
/
go1.0
/
CheckExplicitEmbeddedSelector
/
CheckExplicitEmbeddedSelector-depth.go
☽
☼
quickfix/qf1008/testdata/go1.0/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-depth.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
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.T2.F //@ diag(`could remove embedded field "T2" from selector`)
17
_ = v.T3.F
18
}