Skip to content

Commit

Permalink
Fix Signature.Values for arrays of complex types
Browse files Browse the repository at this point in the history
  • Loading branch information
guelfey committed Apr 1, 2013
1 parent 753310e commit ffe274e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,8 @@ func value(s string) (t reflect.Type) {
if s[1] == '{' {
i := strings.LastIndex(s, "}")
t = reflect.MapOf(sigToType[s[2]], value(s[3:i]))
} else if s[1] == '(' {
t = interfacesType
} else {
t = reflect.SliceOf(sigToType[s[1]])
t = reflect.SliceOf(value(s[1:]))
}
case '(':
t = interfacesType
Expand Down

0 comments on commit ffe274e

Please sign in to comment.