summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/struct.eo
blob: cbdec54fcebbae05caa5601a69289018a99e44f8 (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
struct Named {
    field: int;
    something: const(char)*;
}

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: own(char*);
      }
      bar {
         return: Named *;
      }
   }
}