Skip to content

Add support to "import" a module #189

Description

@edg-l
mod test_direct_use {
    mod first {
        mod second {
            fn hello() -> i32 {
                return 2;
            }
        }
    }

    import first.{second};

    pub fn main() -> i32 {
        let mut x: i32 = second::hello();
        return x;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions