Emit interface{} as just interface{}
This commit is contained in:
parent
40ac0a1d2b
commit
5ae168d23c
1 changed files with 1 additions and 2 deletions
|
@ -468,8 +468,7 @@ func (g *RPCGenerator) GenTypeName(t types.Type) string {
|
|||
contract.Failf("Unrecognized GenTypeName basic type: %v", k)
|
||||
}
|
||||
case *types.Interface:
|
||||
// interface{} properties become "JSON-like" maps.
|
||||
return "map[string]interface{}"
|
||||
return "interface{}"
|
||||
case *types.Named:
|
||||
obj := u.Obj()
|
||||
// For resource types, simply emit an ID, since that is what will have been serialized.
|
||||
|
|
Loading…
Reference in a new issue