Skip to content

Commit

Permalink
fix invalidations in REPLCompletions from Static.jl (JuliaLang#46494)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Aug 30, 2022
1 parent 2f45051 commit d968464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ function get_value(sym::Expr, fn)
end
sym.head !== :. && return (nothing, false)
for ex in sym.args
ex, found = get_value(ex, fn)
ex, found = get_value(ex, fn)::Tuple{Any, Bool}
!found && return (nothing, false)
fn, found = get_value(ex, fn)
fn, found = get_value(ex, fn)::Tuple{Any, Bool}
!found && return (nothing, false)
end
return (fn, true)
Expand Down

0 comments on commit d968464

Please sign in to comment.