raz / test / err / MatchBlankField.raz

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

1module MatchBlankField;
2(* An arm names a field, it doesn't blank it: the help gives the name to use *)
3type Arg = variant int(i: INT); real(r: F64; places: INT); end;
4
5proc f(a: Arg);
6begin
7 match a of
8 | int(i): return;
9 | real(r, _): return;
10 end;
11end;
12
13begin
14end MatchBlankField.