| 1 | module MatchBlankVariant; |
| 2 | (* The arm for every other case of a variant is else, not _ *) |
| 3 | type Arg = variant int(i: INT); real(r: F64; places: INT); end; |
| 4 | |
| 5 | proc f(a: Arg); |
| 6 | begin |
| 7 | match a of |
| 8 | | int(i): return; |
| 9 | | _: return; |
| 10 | end; |
| 11 | end; |
| 12 | |
| 13 | begin |
| 14 | end MatchBlankVariant. |