aboutsummaryrefslogtreecommitdiff
path: root/tests/struct_pub_generic_cont/struct.ek
blob: 5abbe38d264dcb9b13dcc8ae9d86b4aba1fa9ca4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub define any[] {}
pub typedef i27 {}
pub typedef struct[any T] {}

/* private definition of some function */
pub continue struct[any T] {
	do_something(){}
}

pub some_func()
{
	mut p = struct![i27]{};
	p.do_something();
}