There are two things going on. First, unfortunately you can't yet
declare types on global variables. Second, `Dict{String,
Array{Float64}}` and `Dict{String, Array{Float64,1}}` are disjoint
types, due to parametric invariance.On Thu, Sep 10, 2015 at 9:27 AM, Alex M <[email protected]> wrote: > 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
