Skip to content

Commit 598b019

Browse files
ranochaKristofferC
authored andcommitted
fix invalidations for Dicts from Static.jl (#46490)
(cherry picked from commit 5c5af1f)
1 parent a462c5a commit 598b019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/dict.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ end
372372

373373
function setindex!(h::Dict{K,V}, v0, key0) where V where K
374374
key = convert(K, key0)
375-
if !isequal(key, key0)
375+
if !(isequal(key, key0)::Bool)
376376
throw(ArgumentError("$(limitrepr(key0)) is not a valid key for type $K"))
377377
end
378378
setindex!(h, v0, key)

0 commit comments

Comments
 (0)