Skip to content

Commit

Permalink
fix invalidations in REPLCompletions from Static.jl (#46494)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha authored Aug 30, 2022
1 parent f9712f9 commit 99340fe
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 @@ -409,9 +409,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 99340fe

Please sign in to comment.