Closed yha closed 2 years ago
Hi @yha,
the definition of Pair
was moved from Base
to Core
in v1.7.
You can tell JLD2 about this explicitly:
# julia v1.6 loading the file created with v1.7
julia> load("x.tmp.jld2", "x"; typemap=Dict("Core.Pair" => Base.Pair))
Dict{Int64, Int64} with 1 entry:
1 => 2
julia 1.7:
julia 1.6:
I'm not sure if this is "officially" supposed to work. But if it isn't, maybe there should be a warning when loading a
jld2
file saved by a different julia version, and some mention in the docs about saving and loading across julia versions?