From 71cbb3a73702e7d290225aeab6192b3d2c6d5422 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 26 Aug 2025 16:22:53 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=20Demo=2024?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/Demo/Demo24/Main.snow | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 playground/Demo/Demo24/Main.snow 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