simonster / Reexport.jl

Julia macro for re-exporting one module from another
Other
161 stars 19 forks source link

`at-reexport module X` doesn't work on 0.7 #13

Closed ararslan closed 6 years ago

ararslan commented 6 years ago

On 0.6:

julia> module A
       using Main: @reexport
       @reexport module B
           const x = 1
           export x
       end
       end
A

julia> A.x
1

On 0.7:

julia> module A
       using Main: @reexport
       @reexport module B
           const x = 1
           export x
       end
       end
Main.A

julia> A.x
ERROR: UndefVarError: x not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:14
 [2] top-level scope