diff --git a/playground/Demo/Demo24/Main.snow b/playground/Demo/Demo24/Main.snow new file mode 100644 index 0000000..a18b417 --- /dev/null +++ b/playground/Demo/Demo24/Main.snow @@ -0,0 +1,23 @@ +module: Main + import: ModuleA,os + function: main + returns: void + body: + declare a: int = ModuleA.sum(1,2) + end body + end function +end module + +module: ModuleA + globals: + declare a: int = 10 + function: sum + params: + declare a: int + declare b: int + returns: int + body: + return a + b + end body + end function +end module \ No newline at end of file