blob: 6c94aaa0e93ed91aec2f02b275f7e97df8e7ca3b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
pub typedef ptr {};
pub typedef i27 {};
pub define trait[] {
do_something(=> i27);
}
pub typedef implementer {}
continue implementer {
trait![];
do_something(=> i27)
{
return 0;
}
}
pub typedef struct[trait T] {
T a;
call_something(*struct![T] self)
{
self*.a.do_something();
}
}
pub some_func()
{
mut p = struct![implementer]{
.a = implementer!{}
};
p.call_something();
}
|