The representation of non empty interfaces defined in the interpreter is now identical between refType() and frameType() functions, which are used to generate interpreter objects. Fixes #1447 and #1426.
21 lines
193 B
Go
21 lines
193 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
type I interface {
|
|
Name() string
|
|
}
|
|
|
|
type S struct {
|
|
iMap map[string]I
|
|
}
|
|
|
|
func main() {
|
|
s := S{}
|
|
s.iMap = map[string]I{}
|
|
fmt.Println(s)
|
|
}
|
|
|
|
// Output:
|
|
// {map[]}
|