summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/owning.eo
blob: f74d683b78ad039e85a94e141846434782c65872 (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
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 : iterator<ptr(Test.A) @owned> @owned;
         test3 : hash<string, ptr(Test.A) @owned> @owned;
         test4 : accessor<ptr(Test.A) @owned> @owned;
       }
     }

   }
}