github.com/HaHadaxigua/yaegi@v1.0.1/_test/struct7.go (about) 1 package main 2 3 type Opt struct { 4 b bool 5 } 6 7 type T struct { 8 i int 9 opt Opt 10 } 11 12 func main() { 13 a := T{} 14 println(a.i, a.opt.b) 15 } 16 17 // Output: 18 // 0 false