We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35616c6 commit d25c7f1Copy full SHA for d25c7f1
stdlib/REPL/src/REPL.jl
@@ -75,7 +75,7 @@ function _UndefVarError_warnfor(io::IO, m::Module, var::Symbol)
75
Base.isbindingresolved(m, var) || return false
76
(Base.isexported(m, var) || Base.ispublic(m, var)) || return false
77
active_mod = Base.active_module()
78
- mod_imported = in(Symbol(m), names(active_mod, imported=true))
+ mod_imported = isdefined(active_mod, Symbol(m))
79
if !mod_imported && Symbol(m) == var
80
print(io, "\nHint: $m is loaded but not imported in the active module `$(active_mod)`.")
81
else
0 commit comments