Skip to content

Commit d25c7f1

Browse files
use isdefined
1 parent 35616c6 commit d25c7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function _UndefVarError_warnfor(io::IO, m::Module, var::Symbol)
7575
Base.isbindingresolved(m, var) || return false
7676
(Base.isexported(m, var) || Base.ispublic(m, var)) || return false
7777
active_mod = Base.active_module()
78-
mod_imported = in(Symbol(m), names(active_mod, imported=true))
78+
mod_imported = isdefined(active_mod, Symbol(m))
7979
if !mod_imported && Symbol(m) == var
8080
print(io, "\nHint: $m is loaded but not imported in the active module `$(active_mod)`.")
8181
else

0 commit comments

Comments
 (0)