blob: b790dd431718cb56629e364819883e2e1ddf3a4d (
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();
}
|