raz / test / err / MatchBlankEnum.raz

14 lines · 237 B · raw · history · last change 122c3f10

1module MatchBlankEnum;
2(* The arm for every other case of an enumeration is else, not _ *)
3type Colour = (red, green);
4
5proc f(c: Colour);
6begin
7 match c of
8 | red: return;
9 | _: return;
10 end;
11end;
12
13begin
14end MatchBlankEnum.