summaryrefslogtreecommitdiff
path: root/test.toc
blob: ddd4c04fda66f9eb34b16f14baacc006070ed70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

puti @= fn(x: int) {
	 #C("printf(\"%ld\\n\", (long)x);
");
};

// putf @= fn(x: float) {
// 	 #C("printf(\"%f\\n\", (double)x);
// ");
// };

main @= fn() {
	 b @= fn(x: int) int { 2*x };
	 puti(b(10));
};