summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-12 16:58:21 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-12 16:58:21 +0330
commit188fc08d3b3095a843c24207fe3a73999b2894fb (patch)
treee3639a118a8cdc57a496e8169e0d34207b8e3de9 /test
parent5c336962d3d0a885a870708076f154ee422fee12 (diff)
enhanced if with else
fix if scope bug
Diffstat (limited to 'test')
-rw-r--r--test/main.felan8
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;
+ }
};