mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
21 lines
179 B
Go
21 lines
179 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func newT2() *T2 { return &T2{} }
|
|
|
|
type T2 struct {
|
|
T1
|
|
}
|
|
|
|
type T1 struct {
|
|
bs []byte
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println(newT2())
|
|
}
|
|
|
|
// Output:
|
|
// &{{[]}}
|