diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-21 01:44:38 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-21 01:44:38 +0330 |
commit | 13156d99a29ba927f64d344cf4d385414bcf61e1 (patch) | |
tree | d20a5e2e18b471f4ee24b5766c04aa9509aa6fff /test | |
parent | df4604f27bbd8ed42ea2c7026c7e4845aafd1a8b (diff) |
add type def as variable
fix some memory leaks
Diffstat (limited to 'test')
-rw-r--r-- | test/main.felan | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/main.felan b/test/main.felan index b99a284..387bd90 100644 --- a/test/main.felan +++ b/test/main.felan @@ -1,7 +1,9 @@ -main :: () -> void { - a := 10000; +test :: ()->void; + +main : test : () -> void { + a := 10; while a > 0 { - print_u64 2; + print_u64 1; a = a -1; } }; |