That's the point of the macro - to ensure that inference infers a concrete result. It can help ensure that code stays type-stable. Throwing for a union is expected.
- [julia-users] What does the @inferred macro do? Tomas Lycken
- Re: [julia-users] What does the @inferred macro do? Isaiah Norton
- Re: [julia-users] What does the @inferred macro do? Scott Jones
- Re: [julia-users] What does the @inferred macro... Matt Bauman
- Re: [julia-users] What does the @inferred m... Scott Jones