summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/struct.eo
blob: 57f250bdbe18f12b81f3dde75da0e7501ec0b6bb (plain)
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 @by_ref;
    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 @move;
      }
      bar {
         return: Named @by_ref;
      }
   }
}