summaryrefslogtreecommitdiff
path: root/code/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-04 02:04:51 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-04 02:04:51 +0330
commit5c0542111e67d60490c7e218b985d6c6b9eaf9f2 (patch)
tree8f261ef4cb17dbb6fe5e46af2ba18f836d55caf6 /code/main.felan
parent052ff9cc03544f29e1c3c79f09b6b0f3fb989532 (diff)
arg names are in function types now
Diffstat (limited to 'code/main.felan')
-rw-r--r--code/main.felan8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/main.felan b/code/main.felan
index 5ac54dd..ce11587 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -7,12 +7,12 @@ double :: f64;
main :: () -> void {
a :u64= 2;
- f :: ()->void{
- print_u64 a;
+ f :: (c:u64,b:u64)->void{
+ print_u64 c-b+a;
};
foo(f);
};
-foo :: (fun:()->void)->void{
- // fun();
+foo :: (fun:(b:u64,u64)->void)->void{
+ fun(b = 3,4);
};