Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base.ispublic and Base.isexported report true for undefined names #51585

Closed
nsajko opened this issue Oct 4, 2023 · 1 comment
Closed

Base.ispublic and Base.isexported report true for undefined names #51585

nsajko opened this issue Oct 4, 2023 · 1 comment

Comments

@nsajko
Copy link
Contributor

nsajko commented Oct 4, 2023

julia> module M
         export n
       end
Main.M

julia> Base.ispublic(M, :n)
true

julia> Base.isexported(M, :n)
true

julia> M.n
ERROR: UndefVarError: `n` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ REPL[3]:1

julia> versioninfo()
Julia Version 1.11.0-DEV.595
Commit b790cf8f0c5 (2023-10-03 20:35 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
  Threads: 1 on 8 virtual cores
@vtjnash
Copy link
Sponsor Member

vtjnash commented Oct 4, 2023

Duplicate of #51584

@vtjnash vtjnash marked this as a duplicate of #51584 Oct 4, 2023
@vtjnash vtjnash closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants