Skip to content

Commit

Permalink
things can be defined without being (yet) resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwheeler committed Jan 8, 2025
1 parent 90b2fca commit f2885c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function _UndefVarError_warnfor(io::IO, modules, var::Symbol)
to_warn_about = Dict{Module, Vector{Module}}()
for m in modules
# only warn if binding is resolved and exported or public
if !Base.isbindingresolved(m, var) || (!Base.isexported(m, var) && !Base.ispublic(m, var))
if !Base.isdefined(m, var) || (!Base.isexported(m, var) && !Base.ispublic(m, var))
continue
end
warned = true
Expand Down

0 comments on commit f2885c6

Please sign in to comment.