about summary refs log tree commit diff
path: root/examples/11.src
blob: adaabe4581f0685078a64c9bc469191415df9bc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
let main = () => i64 {
	let x = (a: i64) => i64 {
		print(a);
		return 1;
	};

	let y = (f: (i64) => i64) => i64 {
		return f(2);
	};

	return y(x);
};