Hello,

I am trying to attach the type for a variable like that:

julia> a::Dict{String, Array{Float64}} = { "y" => Float64[1.0, 2.0]}
ERROR: type: typeassert: expected Dict{String,Array{Float64,N}}, got 
Array{Float64,1}

julia> a::Dict{String, Array{Float64}} = { "y" => [1.0, 2.0]}
ERROR: type: typeassert: expected Dict{String,Array{Float64,N}}, got 
Array{Float64,1}

Why is it an error?

Best regards,
Alex

Reply via email to