summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-11 14:49:00 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-11 14:49:00 +0330
commitcb92cc5df12a77be438801bc5f80bcdea853fce7 (patch)
treeb8147edf7a37a526d309b44bdf25c7bc1d9edc9c /code
parent399256ab6f75b364773c299847ad2c57a96a7c41 (diff)
fix bugs in function overloading
Diffstat (limited to 'code')
-rw-r--r--code/main.felan5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/main.felan b/code/main.felan
index f9ba848..1defd0b 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -22,6 +22,7 @@ main :: () -> void {
b :u64 = 34;
print_rev(a);
print_rev(b);
+ print_rev();
a();
};
@@ -29,6 +30,10 @@ a :: () -> void {
putc 'x';
};
+print_rev :: ()-> void {
+ putc 'c';
+};
+
print_rev :: (value:u64) -> void {
putc 'a';
value := value;