summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-11 18:28:27 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-11 18:28:27 +0330
commit37f4ca67e760fee528b16f4a5aa56821935976a8 (patch)
treefe4631cb6878552ac020689a3ed21b37b943352f /code
parent65a33238c44b9be7a025aab84413324d776cfaf1 (diff)
fix recursive after function overloading
Diffstat (limited to 'code')
-rw-r--r--code/main.felan10
1 files changed, 10 insertions, 0 deletions
diff --git a/code/main.felan b/code/main.felan
index 47de67d..583c05d 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -17,9 +17,19 @@ long_double :: f128;
usize :: u64;
+t :: f(7);
+
+f :: (a:i64)->i64{
+ if a == 0 || a == 1
+ return 0;
+ else
+ return f(a-1)+f(a-2);
+};
+
main :: () -> void {
a :i64 = 12;
b :u64 = 34;
+ print_rev(t);
print_rev(a);
print_rev(b);
print_rev();