Skip to content

Commit 5c5af1f

Browse files
authored
fix invalidations for Dicts from Static.jl (#46490)
1 parent 91f068c commit 5c5af1f

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
@@ -359,7 +359,7 @@ end
359359

360360
function setindex!(h::Dict{K,V}, v0, key0) where V where K
361361
key = convert(K, key0)
362-
if !isequal(key, key0)
362+
if !(isequal(key, key0)::Bool)
363363
throw(ArgumentError("$(limitrepr(key0)) is not a valid key for type $K"))
364364
end
365365
setindex!(h, v0, key)

0 commit comments

Comments
 (0)