summaryrefslogtreecommitdiff
path: root/test.toc
blob: 62724939accb7a78ee3d76d289beac95ddc929e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
puti @= fn(x: int) {
	 #C("printf(\"%ld\\n\", (long)x);
");
};
// putf @= fn(x: float) {
// 	 #C("printf(\"%f\\n\", (double)x);
// ");
// };


f @= fn(t @ Type, x: t) t {
  x + 1
};

g @= fn(x, y @ Type) int {
(3 as x) + (5 as y)
};

main @= fn() {
	 puti(f(int, 3));
	 puti(f(u8, 255) as int);
	 puti(g(int, int));
};