aboutsummaryrefslogtreecommitdiff
path: root/code/main.felan
blob: d70af9beec29e2ace2107ef316386deae7590432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@import("basic.felan");

f :: (comptime t:type,a:t) -> t {
  if t == u8 putc 'a';
  else putc 'b';
  return a;
};

main :: () -> void {
  b:u8 = '1';
  c:i64 = 69;
  f(u8,b);
  f(i64,c);
};