Skip to content

Commit adc72d1

Browse files
authored
Improve inference in REPL LineEdit.jl getEntry (#46550)
This prevents invalidations from loading Static.jl
1 parent 25a07bf commit adc72d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/LineEdit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ end
17081708
function getEntry(keymap::Dict{Char,Any},key::Union{String,Char})
17091709
v = keymap
17101710
for c in key
1711-
if !haskey(v,c)
1711+
if !(haskey(v,c)::Bool)
17121712
return nothing
17131713
end
17141714
v = v[c]

0 commit comments

Comments
 (0)