loom
1import "test" t, r;
2
3print t;
4print t.type_of_test;
5print t.anything_else;
6
7func f1 () {}
8print "f1 " + f1;
9//print f1(); // Функция f1 не возвращает значения (является процедурой)
10wait f1();
11
12func f2 (r.type_of_test , int , r.type_of_test [] ) -> r.type_of_test { return {}; }
13print "func f2 " + f2;
14print "f2({}, 1, []) = " + f2({}, 1, []);
15
16func f3 (r.type_of_test a, int b, r.type_of_test [] c) -> r.type_of_test x { return {}; }
17print "func f3 " + f3;
18print "f3({}, 1, []) = " + f3({}, 1, []);
19
20func f4 () -> r.type_of_test [] { return []; }
21print "func f4 " + f4;
22print "f4() = " + f4();
23
24func f5 () -> r.type_of_test [] x {return [];}
25print "func f5 " + f5;
26print "f5() = " + f5();
27