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 []*types.Type, resultType *types.Type, opts ...OverloadOpt)
| 620 | // Note: function bindings should be commonly configured with Overload instances whereas operand traits and |
| 621 | // strict-ness should be rare occurrences. |
| 622 | func MemberOverload(overloadID string, |
| 623 | args []*types.Type, resultType *types.Type, |
| 624 | opts ...OverloadOpt) FunctionOpt { |
| 625 | return newOverload(overloadID, true, args, resultType, opts...) |
| 626 | } |
| 627 | |
| 628 | func newOverload(overloadID string, |
| 629 | memberFunction bool, args []*types.Type, resultType *types.Type, |