github.com/traefik/yaegi@v0.15.1/_test/composite13.go (about) 1 package main 2 3 type A struct { 4 C D 5 } 6 7 type D struct { 8 E string 9 } 10 11 func main() { 12 a := A{} 13 a.C = D{E: "bb"} 14 15 println(a.C.E) 16 } 17 18 // Output: 19 // bb