Skip to content

Commit

Permalink
fix invalidations for Dicts from Static.jl (JuliaLang#46490)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha authored Aug 29, 2022
1 parent 91f068c commit 5c5af1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ end

function setindex!(h::Dict{K,V}, v0, key0) where V where K
key = convert(K, key0)
if !isequal(key, key0)
if !(isequal(key, key0)::Bool)
throw(ArgumentError("$(limitrepr(key0)) is not a valid key for type $K"))
end
setindex!(h, v0, key)
Expand Down

0 comments on commit 5c5af1f

Please sign in to comment.