forked from enlightenment/efl
31 lines
443 B
Plaintext
31 lines
443 B
Plaintext
struct Named {
|
|
field: ptr(int);
|
|
something: string;
|
|
}
|
|
|
|
struct Another {
|
|
field: Named;
|
|
}
|
|
|
|
/* opaque struct */
|
|
struct Opaque;
|
|
|
|
struct @extern Not.Generated {
|
|
field: int;
|
|
}
|
|
|
|
class Struct {
|
|
methods {
|
|
foo {
|
|
[[Foo docs. This is $monospace. This is alone-standing $.]]
|
|
params {
|
|
idx: int;
|
|
}
|
|
return: mstring @owned;
|
|
}
|
|
bar {
|
|
return: ptr(Named);
|
|
}
|
|
}
|
|
}
|