diff --git a/playground/Demo/Demo22/Main.snow b/playground/Demo/Demo22/Main.snow index 1c727b4..91865ef 100644 --- a/playground/Demo/Demo22/Main.snow +++ b/playground/Demo/Demo22/Main.snow @@ -1,11 +1,11 @@ module: Main import: os,ModuleA globals: - declare sum: int = 3 + declare sum: int function: main returns: void body: - sum = sum + ModuleA._sum(1, 2) + sum = ModuleA.a os.print(sum) end body end function diff --git a/playground/Demo/Demo22/ModuleA.snow b/playground/Demo/Demo22/ModuleA.snow index c5c9a86..5561ef6 100644 --- a/playground/Demo/Demo22/ModuleA.snow +++ b/playground/Demo/Demo22/ModuleA.snow @@ -1,11 +1,4 @@ module: ModuleA - function: _sum - params: - declare a: int - declare b: int - returns: int - body: - return a + b - end body - end function + globals: + declare const a: int =10 end module \ No newline at end of file