summaryrefslogtreecommitdiff
path: root/test/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-20 17:47:28 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-20 17:47:28 +0330
commit69310fa04d9370841c7b4f30c7278fb138b7b2e2 (patch)
tree34c153ca254ff9a3687d461a13d84aa35e358235 /test/main.felan
parent624a73ae10eb3aaa535eb41c023c59919df28c99 (diff)
added named paramters
Diffstat (limited to 'test/main.felan')
-rw-r--r--test/main.felan7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/main.felan b/test/main.felan
index 111da65..3c13579 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -2,9 +2,8 @@ main :: () -> void {
print_u64 a;
};
-a :: f(2);
+a :: f(b=4,a=5);
-f :: (arg:u64)->u64{
- b:=arg;
- return b;
+f :: (a:u64,b:u64)->u64{
+ return a-b;
};