aboutsummaryrefslogtreecommitdiff
path: root/tests/struct_trait_cont/struct_trait_cont.ek
blob: b4f7a2a2ef0087379d10db7a5ea0008a03071f1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define a {
	a();
}

typedef struct {}
continue struct {
	a!;
	a(){}
}

typedef struct2[a T] {
	T elem;
}

main()
{
	mut p = struct2![struct]{
		.elem = struct!{}
	};
}