raz / conform / err / MatchStrTwice.raz

11 lines · 175 B · raw · history · last change 768afb54

1module MatchStrTwice;
2proc f(s: []U8; v: []I32);
3var n: INT;
4begin
5 match s of
6 | "a", "b": n := 1;
7 | "b": n := 2;
8 | else:
9 end;
10end;
11end MatchStrTwice.