From b2d7d493d5ddbece2041c476055ce63788113085 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 28 Jun 2025 16:30:14 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=20Demo1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/Demo1/Main.snow | 6 ++---- playground/Demo1/Math.snow | 10 +++++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/playground/Demo1/Main.snow b/playground/Demo1/Main.snow index 08eeda8..89efc03 100644 --- a/playground/Demo1/Main.snow +++ b/playground/Demo1/Main.snow @@ -1,11 +1,9 @@ module: Main import:Math function: main - parameter: - return_type: int + return_type: void body: - Math.factorial(6L,1L) - return 0 + Math.add(6,1) end body end function end module diff --git a/playground/Demo1/Math.snow b/playground/Demo1/Math.snow index bfe8605..2e5963e 100644 --- a/playground/Demo1/Math.snow +++ b/playground/Demo1/Math.snow @@ -1,11 +1,11 @@ module: Math - function: factorial + function: add parameter: - declare n1: long - declare n2: long - return_type: long + declare n1: int + declare n2: int + return_type: int body: - return n1+n2 + return n1 + n2 end body end function end module \ No newline at end of file