github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct38.gno (about) 1 package main 2 3 type T struct { 4 f func(t *T1) 5 y *xxx 6 } 7 8 type T1 struct { 9 T 10 } 11 12 type xxx struct{} 13 14 var ( 15 x1 *T1 = x 16 x = &T1{} 17 ) 18 19 func main() { 20 println("ok") 21 } 22 23 // Output: 24 // ok