diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-23 22:09:19 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-23 22:09:19 +0330 |
commit | af6a58bfad54dc9d3cb49d1efa1c90a5d094bcb1 (patch) | |
tree | 73d775c037d680446181a48ac4d17025c0974603 /test | |
parent | 4a39184dfcf0af72e2a28ffed2e3b342202fcba1 (diff) |
fix bugs in float types
Diffstat (limited to 'test')
-rw-r--r-- | test/main.felan | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/main.felan b/test/main.felan index 5f19b06..fa275e4 100644 --- a/test/main.felan +++ b/test/main.felan @@ -1,7 +1,18 @@ main :: () -> void { a := 2.3; - if a == 2.3 - print_u64 1; + a /= 2.5; + print_u64 (if a == 1.15 + 1 else - print_u64 2; + 2); + // test(u64,i64); }; + +/* +test :: (from:type, to:type) -> void { + if from == to + print_u64 1234; + else + print_u64 4321; +}; +*/ |