summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-11 00:00:35 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-11 00:00:35 +0330
commitdecaf9321cbf119d1efea0c4667f49b0ab2e8c96 (patch)
treea6352e2ef68a83514a15f4f57a87430383e47e04 /test
parent6d127edfa0162219c54b10e3496a3e9530f62792 (diff)
add unary + -
Diffstat (limited to 'test')
-rw-r--r--test/main.felan6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/main.felan b/test/main.felan
index 3cf7788..6879dd2 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,12 +1,12 @@
main :: () -> void {
- a := fun(2, 3,);
- print(a+5+t);
+ a := fun(-2, 3,);
+ print(a);
};
t :: fun(1,2);
fun :: (a:u64, b:u64)->u64 {
- return b+a*b-b/a%2;
+ return a+b;
};
print :: (a:u64)->void {