summaryrefslogtreecommitdiff
path: root/test/main.felan
blob: ca2694cf278e7143ce03ce69a9364c77860a35eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
main :: () -> void {
  a :getType(i64,u64)= 0;
  while a < 10 {
    print_u64 a;
    a += 1;
  }
};

signed :: false;

getType :: (a:type,b:type)->type {
  if signed
    return a;
  else
    return b;
};