From 7f074cb798b98446a61a9774d098f368ec220d0f Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 10 Jul 2025 11:45:37 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=20Bug1=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/BugFarm/Bug1/Main.snow | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/playground/BugFarm/Bug1/Main.snow b/playground/BugFarm/Bug1/Main.snow index 4a13b7d..134096c 100644 --- a/playground/BugFarm/Bug1/Main.snow +++ b/playground/BugFarm/Bug1/Main.snow @@ -1,17 +1,21 @@ module: Main function: main - parameter: return_type: int body: - declare n1: int =1 - declare n2: int =2 - declare n3: int =1 - if n1 ==1 then - if n2 ==2 then - n3 =3 - end if - end if - return n3 + foo() + + return 0 + end body + end function + + function: foo + return_type: int + body: + if false then + return 1 + end if + + return 0 end body end function end module \ No newline at end of file