summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/owning.eo
blob: ae926a5e35d28f98232a01e425c7c1f881853c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
struct @free(free_a) Test.A {
   t : int;
}

class Owning {
   methods {
     test1 {
       params {
         test1 : list<string> @owned;
         test2 : iterator<string> @owned;
         test3 : hash<string, string> @owned;
         test4 : accessor<string> @owned;
       }
     }
     test2 {
       params {
         test1 : list<ptr(Test.A) @owned> @owned;
         test2 : hash<string, ptr(Test.A) @owned> @owned;
       }
     }

   }
}