I just started coding in Julia today, and I have a slight problem with Dict(), when I create one that has only “nothing” or “missing” as values, I cannot later reassign the values to something else:

In: noth_dict = Dict(“A” => nothing)

Out: Dict{String,Nothing} with 1 entry:

“A” => nothing

**In**: noth_dict[“A”] = 1

**Out:** MethodError: convert(::Type{Union{}}, ::Int64) is ambiguous. Candidates:

convert(::Type{Union{}}, x) in Base at essentials.jl:166

convert(::Type{T}, x::Number) where T<:Number in Base at number.jl:7

convert(::Type{T}, arg) where T<:VecElement in Base at baseext.jl:8

convert(::Type{T}, x::Number) where T<:AbstractChar in Base at char.jl:179

Possible fix, define

convert(::Type{Union{}}, ::Number)

Stacktrace:

[1] convert(::Type{Nothing}, ::Int64) at ./some.jl:34

[2] setindex!(::Dict{String,Nothing}, ::Int64, ::String) at ./dict.jl:380

[3] top-level scope at In[210]:1

I would appreciate any help with this.