Skip to content

aliases imported from another module are undefined #43290

Closed

Description

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions