mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
Mark all visited types as such when walking down struct fields. Fixes #750. Updates #652.
24 lines
172 B
Go
24 lines
172 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
type T1 struct {
|
|
P []*T
|
|
}
|
|
|
|
type T2 struct {
|
|
P2 *T
|
|
}
|
|
|
|
type T struct {
|
|
*T1
|
|
S1 *T
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println(T2{})
|
|
}
|
|
|
|
// Output:
|
|
// {<nil>}
|