summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 01:44:37 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 01:44:37 +0330
commit1b8c8fb55ae5a2bc48951b65b01eb83d75ab4715 (patch)
tree8eeaa2f7dde63223b67375e1411ad3d5c9d246e3 /test
parent79360f43b87cbb0e7ec3abca4c08406866fbf26a (diff)
fix some bugs for return
Diffstat (limited to 'test')
-rw-r--r--test/main.felan6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/main.felan b/test/main.felan
index 969281c..a3aea7a 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,8 +1,10 @@
main :: () -> void {
- print_u64 fun() + 4 + 5;
+ a := fun();
+ a = a + 3;
+ print_u64 a + 5;
};
fun :: ()->u64 {
- return 123;
+ return 1;
};