[Go] Fix use of goout typemap when calling base method by

forcing the "type" attribute to the value we need.
This commit is contained in:
Ian Lance Taylor 2016-04-18 15:30:06 -07:00
commit 0f54384ee3
4 changed files with 55 additions and 0 deletions

View file

@ -40,4 +40,14 @@ func main() {
fmt.Println("got", a, "want", dwant)
panic(a)
}
c2 := go_inout.NewC2()
pm := c2.M()
want = map[string]interface{}{
"ID": float64(1),
}
if !reflect.DeepEqual(*pm, want) {
fmt.Println("for c2.M got", pm, "want", want)
panic(pm)
}
}