/ tests / expectations / compiler / function / mutual_recursion_fail.out
mutual_recursion_fail.out
 1  Error [ETYC0372043]: Cannot call a local transition function from a transition function.
 2      --> compiler-test:12:16
 3       |
 4    12 |         return bax(n);
 5       |                ^^^^^^
 6  Error [ETYC0372043]: Cannot call a local transition function from a transition function.
 7      --> compiler-test:16:16
 8       |
 9    16 |         return baz(n);
10       |                ^^^^^^
11  Error [ETYC0372042]: Only `inline` can be called from a `function`, `inline`, or `constructor`.
12      --> compiler-test:4:16
13       |
14     4 |         return bar(n);
15       |                ^^^^^^
16  Error [ETYC0372042]: Only `inline` can be called from a `function`, `inline`, or `constructor`.
17      --> compiler-test:8:16
18       |
19     8 |         return foo(n);
20       |                ^^^^^^
21  Error [ETYC0372059]: Cyclic dependency between functions: `test.alpha/baz` --> `test.alpha/bax` --> `test.alpha/baz`