summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 10:58:07 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 10:58:07 +0330
commitcb26dd0fc9c1e33be1c32eb85b04434526004e6a (patch)
tree8a467633398b2384216c5ac652a2ff86a2b5d3f3 /test
parentf362a9a64004ba61e326e223d0d28997762afe71 (diff)
add bool
Diffstat (limited to 'test')
-rw-r--r--test/main.felan12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/main.felan b/test/main.felan
index c1d3e49..308a21c 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,9 +1,15 @@
main :: () -> void {
- a : u64 = fun(2,3);
- print_u64 a;
+ b := false;
+ b = true;
+ a := fun(2, 3);
+ print(a+5);
};
-fun :: (a:u64,b:u64)->u64 {
+fun :: (a:u64, b:u64)->u64 {
return a+b+1;
};
+print :: (a:u64)->void {
+ print_u64 a;
+};
+