From d968464848dc10d0e72b134262ea1b5edca7e192 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 30 Aug 2022 11:51:11 +0200 Subject: [PATCH] fix invalidations in REPLCompletions from Static.jl (#46494) --- stdlib/REPL/src/REPLCompletions.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/REPL/src/REPLCompletions.jl b/stdlib/REPL/src/REPLCompletions.jl index 162d1184d18c3..07b904c6abb84 100644 --- a/stdlib/REPL/src/REPLCompletions.jl +++ b/stdlib/REPL/src/REPLCompletions.jl @@ -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)