github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/composite12.gno (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{"bb"} 14 15 println(a.C.E) 16 } 17 18 // Output: 19 // bb