github.com/switchupcb/yaegi@v0.10.2/_test/struct38.go (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