aboutsummaryrefslogtreecommitdiff
path: root/tests/calls.ek
blob: 497864992f325b21b0a0f9db2d8d8d58fc4795b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef some_type {
	add(some_type, some_type => some_type);
}

add(a u32, b u32 => u32)
{
	return a + b;
}

/* ah fuck, analyze_proc gobbles up the typeof */
some_proc(a some_type, b typeof a => typeof a)
{
	return add(a, b);
}

main()
{
	some_proc(20 as u32, 40 as u32);
}