github.com/traefik/yaegi@v0.15.1/_test/struct26.go (about) 1 package main 2 3 import "fmt" 4 5 func newT2() *T2 { return &T2{} } 6 7 type T2 struct { 8 T1 9 } 10 11 type T1 struct { 12 bs []byte 13 } 14 15 func main() { 16 fmt.Println(newT2()) 17 } 18 19 // Output: 20 // &{{[]}}