Closed grahammiln closed 2 years ago
Expand interface checks beyond the immediate value type. This allows values that implement the Marshaler interface but are validly assigned to fields with non-implementing types, such as interface{}.
Marshaler
interface{}
See TestInterfaceFieldMarshal for an example of this behaviour.
TestInterfaceFieldMarshal
Thanks for submitting this! Sorry about leaving you on read for a week; I will try to get to this review over the weekend! 🙂
Merged in 663ca47!
Expand interface checks beyond the immediate value type. This allows values that implement the
Marshaler
interface but are validly assigned to fields with non-implementing types, such asinterface{}
.See
TestInterfaceFieldMarshal
for an example of this behaviour.