Skip to content

imported modules aren't exported #268

Closed
@marijnh

Description

@marijnh

If I have, in mod1:

import foo = x.y;

And then in another mod try to refer to mod1.foo.[something], I get (with rustboot) "error: the name 'foo' can't be found in the module".

Maybe this is by design, but I'd argue that it'd be very good to have this supported (and that it's not hard to support). I ran into this trying to factor out the duplicated native modules in lib/linux_os.rs and lib/macosx_os.rs.

Metadata

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