aboutsummaryrefslogtreecommitdiff
path: root/tests/callbacks/callbacks.ek
blob: 9e16627b4eefe600313e26f0b26a5c0d9b4c1666 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef i27 {}
typedef ptr {}

do_stuff(*(i27 => i27) proc => i27)
{
	return proc(20);
}

other_proc(i27 a => i27)
{
	return a + 10;
}

main()
{
	do_stuff(other_proc&);
}