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