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

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

	return y(x);
};