diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-12 16:58:21 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-12 16:58:21 +0330 |
commit | 188fc08d3b3095a843c24207fe3a73999b2894fb (patch) | |
tree | e3639a118a8cdc57a496e8169e0d34207b8e3de9 /test | |
parent | 5c336962d3d0a885a870708076f154ee422fee12 (diff) |
enhanced if with else
fix if scope bug
Diffstat (limited to 'test')
-rw-r--r-- | test/main.felan | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/main.felan b/test/main.felan index e1a8bec..84cc638 100644 --- a/test/main.felan +++ b/test/main.felan @@ -1,5 +1,9 @@ main :: () -> void { - b := true; - if b print_u64 23; + b := false; + if b { + print_u64 1; + } else { + print_u64 2; + } }; |