Overload defines a new global overload 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 commonly configured with Overload instan
(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt)
| 301 | // Note: function bindings should be commonly configured with Overload instances whereas operand traits and |
| 302 | // strict-ness should be rare occurrences. |
| 303 | func Overload(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt) FunctionOpt { |
| 304 | return decls.Overload(overloadID, args, resultType, opts...) |
| 305 | } |
| 306 | |
| 307 | // MemberOverload defines a new receiver-style overload (or member function) with an overload id, argument types, |
| 308 | // and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding, |