If my Dict has a strong type defining it’s keys and values (and indeed it doesn’t let me add a different type), then why getindex from said Dict returns unstable Any?
julia> mydict = Dict([("A", 1), ("B", 2)])
Dict{String, Int64} with 2 entries:
"B" => 2
"A" => 1
julia> mydictlookup(mykey) = mydict[mykey]
mydictlookup (generic function with 1 method)
julia> @code_warntype mydictlookup("A")
MethodInstance for mydictlookup(::String)
from mydictlookup(mykey) in Main at REPL[74]:1
Arguments
#self#::Core.Const(mydictlookup)
mykey::String
Body::Any
1 ─ %1 = Base.getindex(Main.mydict, mykey)::Any
└── return %1