aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-15 01:29:06 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-15 01:29:06 +0330
commitb6a27a2fcc02641801b4193d0f068608e18dbcbd (patch)
treed08437a7f8594d9a5f0f8e16545a27328427fef5 /code
parentcfd7848462aa50e039d73df041eab93f9a48b49f (diff)
add first version of shape shifter
Diffstat (limited to 'code')
-rw-r--r--code/main.felan13
1 files changed, 6 insertions, 7 deletions
diff --git a/code/main.felan b/code/main.felan
index c2c3116..ab5fe1f 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -1,14 +1,13 @@
-// @import("basic.felan");
+@import("basic.felan");
-f :: (comptime t:type) -> type {
- return struct {
- a:t;
- };
+f :: (comptime t:type,a:t) -> t {
+ putc a+'0';
+ return a;
};
main :: () -> void {
- a :: u8;
- f(a);
+ b:u8 = 2;
+ f(u8,b);
};