aboutsummaryrefslogtreecommitdiff
path: root/tests/generic/generic.ek
blob: 065477ea41d1ac30c880902998c1cf656231b267 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define any[] {}

typedef i27 {}
typedef i9 {}

typedef a[any T] {
	T b;
}

main()
{
	a![i27] a = a![i27]{.b = 10};
	a![i9] b = a![i9]{.b = 20 as i9};
}