github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct53b.gno (about) 1 package main 2 3 type T1 struct { 4 P []*T 5 } 6 7 type T2 struct { 8 P2 *T 9 } 10 11 type T struct { 12 *T1 13 S1 *T 14 } 15 16 func main() { 17 println(T2{}) 18 } 19 20 // Output: 21 // (struct{(nil *main.T)} main.T2)