summaryrefslogtreecommitdiff
path: root/test/matchargunion.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/matchargunion.myr')
-rw-r--r--test/matchargunion.myr9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/matchargunion.myr b/test/matchargunion.myr
index 7d12706..f5ae799 100644
--- a/test/matchargunion.myr
+++ b/test/matchargunion.myr
@@ -12,10 +12,11 @@ const main = {
v = `Int 123
match v
- | `Int 127: std.exit(42)
- | `Int 123: std.exit(69)
- | `Chr 'a': std.exit(4)
- | `Nil: std.exit(6)
+ | `Int 127: std.exit(42)
+ | `Int 123: std.exit(69)
+ | `Chr 'a': std.exit(4)
+ | `Nil: std.exit(6)
+ | _: std.die("Impossible failed match\n")
;;
}