This really seems like a bug to me, but perhaps I’m missing some kind of obscure difference between
(x, y) and
x => y syntax…
import Base: ==, big import IntervalArithmetic: Interval struct Foo <: Real v end # Necessary for printing ==(x::Foo, y::Float64) = x.v == y big(x::Foo) = big(x.v) # This works... @show ("abc", Interval(Foo(0.0), Foo(1.0))) # But this doesn't work... @show "abc" => Interval(Foo(0.0), Foo(1.0))
What’s going on here? Why can I no haz arrow pairs?