raz / conform / err / Match.raz

11 lines · 139 B · raw · history · last change 1d7484fe

1module Match;
2type S = variant a; b; c; end;
3proc main*;
4var s: S;
5begin
6 match s of
7 | a: s := b;
8 | b:
9 end;
10end;
11end Match.