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)
| 557 | // Note: function bindings should be commonly configured with Overload instances whereas operand traits and |
| 558 | // strict-ness should be rare occurrences. |
| 559 | func MemberOverload(overloadID string, |
| 560 | args []*types.Type, resultType *types.Type, |
| 561 | opts ...OverloadOpt) FunctionOpt { |
| 562 | return newOverload(overloadID, true, args, resultType, opts...) |
| 563 | } |
| 564 | |
| 565 | func newOverload(overloadID string, |
| 566 | memberFunction bool, args []*types.Type, resultType *types.Type, |