From 1d73fc298e49d92760074da70b050dcbd3fda3f7 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 31 Jul 2025 12:44:33 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B7=BB=E5=8A=A0=20Bug4=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/Bug4/Main.snow | 9 +++++++++ playground/BugFarm/Bug4/a.snow | 8 ++++++++ playground/BugFarm/Bug4/b.snow | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 playground/BugFarm/Bug4/Main.snow create mode 100644 playground/BugFarm/Bug4/a.snow create mode 100644 playground/BugFarm/Bug4/b.snow diff --git a/playground/BugFarm/Bug4/Main.snow b/playground/BugFarm/Bug4/Main.snow new file mode 100644 index 0000000..0efa4b1 --- /dev/null +++ b/playground/BugFarm/Bug4/Main.snow @@ -0,0 +1,9 @@ +module: Main + import: ModuleB + function: main + return_type: int + body: + return ModuleB.fun() + end body + end function +end module diff --git a/playground/BugFarm/Bug4/a.snow b/playground/BugFarm/Bug4/a.snow new file mode 100644 index 0000000..d717032 --- /dev/null +++ b/playground/BugFarm/Bug4/a.snow @@ -0,0 +1,8 @@ +module: ModuleA + function: fun + return_type: int + body: + return 123 + end body + end function +end module \ No newline at end of file diff --git a/playground/BugFarm/Bug4/b.snow b/playground/BugFarm/Bug4/b.snow new file mode 100644 index 0000000..4db51a0 --- /dev/null +++ b/playground/BugFarm/Bug4/b.snow @@ -0,0 +1,9 @@ +module: ModuleB + import: ModuleA + function: fun + return_type: int + body: + return ModuleA.fun() + ModuleA.fun() + end body + end function +end module \ No newline at end of file