github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/backup/circular.gno (about)

     1  package main
     2  
     3  type MyStruct struct {
     4  	Elem *MyStruct
     5  }
     6  
     7  func main() {
     8  	s := &MyStruct{}
     9  	s.Elem = s
    10  	println(s)
    11  }