From dc20eb4bf2525ad9179bf9b335621889fe1d2137 Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 16 May 2025 16:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/test b/test index 7d0eae5..1f3471f 100644 --- a/test +++ b/test @@ -5,31 +5,20 @@ module: CommonTasks return_type:int body: - declare x : int - declare x : string - y = 5 - x = "hello" - if x then - declare z : float - declare z : int - else - z = 3.14 - end if - - return CommonTasks.test(3, "a") + return CommonTasks.test(3,1) end body end function - function: test + function:test parameter: - declare num1 : int - declare num2 : int + declare num1:int + declare num2:int return_type:int body: declare result : int - result = num1 + "hello" + result = num1 + num2 return result end body end function