summaryrefslogtreecommitdiff
path: root/code/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-29 20:05:54 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-29 20:05:54 +0330
commit2316751587cf3998112f4e076b5b33080ce66124 (patch)
tree2d9a2388a9028ea0262b7766511dd7b5d918a843 /code/main.felan
parente73184852285ffbb110a96ca7d7e1906029ba825 (diff)
fix bug in conditions
Diffstat (limited to 'code/main.felan')
-rw-r--r--code/main.felan12
1 files changed, 4 insertions, 8 deletions
diff --git a/code/main.felan b/code/main.felan
index 07500ac..e91185a 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -7,12 +7,8 @@ double :: f64;
main :: () -> void {
a : int = 2;
-};
-
-foo :: (a:u64)->void{
- a = 4;
-};
-
-bar :: (a:*u64)->void{
- a.* = 5;
+ if a == 2
+ print_u64 1;
+ else
+ print_u64 0;
};