raz / conform / err / PassOnTypes.raz

19 lines · 237 B · raw · history · last change 1d7484fe

1module PassOnTypes;
2
3proc two(n: I64): (I64, BOOL);
4begin
5 return n, n = 0;
6end;
7
8proc swapped(n: I64): (BOOL, I64);
9begin
10 return two(n);
11end;
12
13proc main*;
14var b: BOOL; i: I64;
15begin
16 b, i := swapped(1);
17end;
18
19end PassOnTypes.