Closed
Description
openedon Dec 1, 2021
If a module aliases an import, then another module can import this aliased variable but the variable will be undefined when resolved.
julia> module A
import Base.identity as id
end
Main.A
julia> import .A.id
julia> id
ERROR: UndefVarError: id not defined
The expected behavior is probably to resolve to Base.identity
:
julia> module A
import Base.identity as id
end
Main.A
julia> import .A.id
julia> id
identity (generic function with 1 method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels