github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct26.gno (about) 1 package main 2 3 import "fmt" 4 5 func newT2() *T2 { return &T2{} } 6 7 type T2 struct { 8 T1 9 } 10 11 type T1 struct { 12 bs []byte 13 } 14 15 func main() { 16 fmt.Println(newT2()) 17 } 18 19 // Output: 20 // &{{[]}}