summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-13 18:39:08 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-13 18:40:23 +0330
commitcb6eaf13c3b3b58779a18255177589d8d5fbf85b (patch)
tree40e648d02dc450bdda7bd4e31503b76ab4bf0a69 /test
parent0ff9508bb0ea7193b0101c3cd9b4ae594e44fd02 (diff)
add i8 u8 i16 u16 i32 u32
add overflow warning
Diffstat (limited to 'test')
-rw-r--r--test/main.felan19
1 files changed, 12 insertions, 7 deletions
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;
};