Vector{Integer} vs Vector{Int64} in mutable struct template

Use Vector{Int64} or simply Vector{Int} which is the same.

Your error message would be solved using Vector{<:Integer} , because of this, but probably you don’t want that, because it is an abstract type.

3 Likes