MemberOverload defines a new receiver-style overload (or member function) with an overload id, argument types, and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding, an operand trait, and to be non-strict. Note: function bindings should be commo
(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt)
| 311 | // Note: function bindings should be commonly configured with Overload instances whereas operand traits and |
| 312 | // strict-ness should be rare occurrences. |
| 313 | func MemberOverload(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt) FunctionOpt { |
| 314 | return decls.MemberOverload(overloadID, args, resultType, opts...) |
| 315 | } |
| 316 | |
| 317 | // OverloadOpt is a functional option for configuring a function overload. |
| 318 | type OverloadOpt = decls.OverloadOpt |