github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct58.gno (about) 1 package main 2 3 type I interface { 4 dummy() 5 } 6 type IS struct{} 7 8 func (iss IS) dummy() { 9 } 10 11 type S struct { 12 x int 13 I 14 } 15 16 func main() { 17 m := make(map[S]string) 18 m[S{0, IS{}}] = "test" 19 println(m) 20 } 21 22 // Output: 23 // map{(struct{(0 int),(struct{} main.IS)} main.S):("test" string)}