summaryrefslogtreecommitdiff
path: root/test/main.felan
blob: b14a3eee6189ab1bff48decd1766a255c46e3e29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
};