You could do myf{T <:Union{T1,T2}}(x::T).

Reply via email to