From 7fc4ce2b64547bbeeae505f9455fad2a80cf4f2b Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Fri, 26 Aug 2022 12:09:56 +0200 Subject: [PATCH] fix invalidations for Dicts from Static.jl --- base/dict.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/dict.jl b/base/dict.jl index 22fd8a3a9f844..750b98ea070f2 100644 --- a/base/dict.jl +++ b/base/dict.jl @@ -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)