From cb6eaf13c3b3b58779a18255177589d8d5fbf85b Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 13 Feb 2025 18:39:08 +0330 Subject: add i8 u8 i16 u16 i32 u32 add overflow warning --- test/main.felan | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'test/main.felan') diff --git a/test/main.felan b/test/main.felan index c0414ec..fb8e2e0 100644 --- a/test/main.felan +++ b/test/main.felan @@ -1,9 +1,14 @@ main :: () -> void { - a := 2; - b := a; - c : u64 = 5; - if a == b - print_u64 (2 + 4)*2; - else - print_u64 c; + a :i8 = 121312; + b :u8 = 1; + c :i16 = 1; + d :u16 = 1; + e :i32 = 1; + f :u32 = 1; + g :i64 = 1; + h :u64 = 1; + if a == 2 + print_u64 h; + else + print_u64 h+2; }; -- cgit v1.2.3