> It would be interesting to learn why this is the case because I would think > it should be.
Have you read through the, I think linked, wikipedia article? You only need to read the Array section: https://en.wikipedia.org/wiki/Covariance_and_contravariance_%28computer_science%29#Arrays > To answer your question, try > > f{T <: IntOrFloat}(x::Vector{T}) > > Hope this helps.