summaryrefslogtreecommitdiff
path: root/test/main.felan
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.felan')
-rw-r--r--test/main.felan16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/main.felan b/test/main.felan
index 387bd90..b14a3ee 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,9 +1,17 @@
-test :: ()->void;
-
-main : test : () -> void {
- a := 10;
+main :: () -> void {
+ a :theType= 10;
while a > 0 {
print_u64 1;
a = a -1;
}
};
+
+theType :: getType(u64,i64);
+signed :: true;
+
+getType :: (a:type,b:type)->type {
+ if signed
+ return a;
+ else
+ return b;
+};