github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/backup/struct28.gno (about) 1 package main 2 3 import "fmt" 4 5 type T1 struct { 6 T2 7 } 8 9 type T2 struct { 10 *T1 11 } 12 13 func main() { 14 t := T1{} 15 fmt.Println(t) 16 } 17 18 // Output: 19 // {{<nil>}}