Promotion rules for custom structs

You need to make sure, you actually overload Base.promote_rule. What you are doing is defining a new function locally, that just happens to be called promote_rule.

5 Likes