concrete icon indicating copy to clipboard operation
concrete copied to clipboard

Add support to "import" a module

Open edg-l opened this issue 8 months ago • 0 comments

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;
    }
}

edg-l avatar Feb 19 '25 09:02 edg-l