Error caused by Sending Vector{Int64} to Vector{Integer} type function

The signature should be u(v::Vector{<:Integer}). Parametric types in Julia are invariant rather than covariant (or contravariant).

6 Likes