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
On 0.6:
On 0.7: