Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import mymodules { add_xy }
|
||||
import mymodules.submodule { sub_xy }
|
||||
|
||||
fn main() {
|
||||
println(add_xy(2, 3)) // expected: 5
|
||||
println(sub_xy(10, 7)) // expected: 3
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
module mymodules
|
||||
|
||||
pub fn add_xy(x int, y int) int {
|
||||
return x + y
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
module submodule
|
||||
|
||||
pub fn sub_xy(x int, y int) int {
|
||||
return x - y
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
Module {
|
||||
name: 'submodule'
|
||||
description: ''
|
||||
version: ''
|
||||
license: ''
|
||||
dependencies: []
|
||||
}
|
||||
Reference in new issue
Block a user