github.com/traefik/yaegi@v0.15.1/_test/issue-1447.go (about)

     1  package main
     2  
     3  import "fmt"
     4  
     5  type I interface {
     6  	Name() string
     7  }
     8  
     9  type S struct {
    10  	iMap map[string]I
    11  }
    12  
    13  func main() {
    14  	s := S{}
    15  	s.iMap = map[string]I{}
    16  	fmt.Println(s)
    17  }
    18  
    19  // Output:
    20  // {map[]}