How to enable type inference on own types similar to what julia supports for nothing and missing?

Whoops, forgot to post the relevant link: julia/promotion.jl at db9063138bbcf8d35ff2e4e55486506602615125 · JuliaLang/julia · GitHub

4 Likes