summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-10 00:17:29 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-10 00:17:29 +0330
commit302cc65d3e59937742c18475d63e22c482176fa7 (patch)
tree69fdaf179bc71eb39643ca3b709f18bd57866df7 /test
parent07cca00060de91569074f61172c9406f01eaefe7 (diff)
add - * / %
Diffstat (limited to 'test')
-rw-r--r--test/main.felan8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/main.felan b/test/main.felan
index f5799d4..3cf7788 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,10 +1,12 @@
main :: () -> void {
- a := fun(2, 3);
- print(a+5);
+ a := fun(2, 3,);
+ print(a+5+t);
};
+t :: fun(1,2);
+
fun :: (a:u64, b:u64)->u64 {
- return a+b+1;
+ return b+a*b-b/a%2;
};
print :: (a:u64)->void {