Parametric-type definition

Yup, you just need to move the <:Number around:

julia> struct CoreM2{T <: Number} <: AbstractArray{T, 3}
         core::Array{T, 3}
       end
2 Likes