gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/struct62.go (about)

     1  package main
     2  
     3  func main() {
     4  	type A struct{ *A }
     5  	v := &A{}
     6  	v.A = v
     7  	println("v.A.A = v", v.A.A == v)
     8  }
     9  
    10  // Output:
    11  // v.A.A = v true