From af6a58bfad54dc9d3cb49d1efa1c90a5d094bcb1 Mon Sep 17 00:00:00 2001 From: A404M Date: Sun, 23 Feb 2025 22:09:19 +0330 Subject: fix bugs in float types --- test/main.felan | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'test/main.felan') 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; +}; +*/ -- cgit v1.2.3