summaryrefslogtreecommitdiff
path: root/test/matchvoid.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/matchvoid.myr')
-rw-r--r--test/matchvoid.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/matchvoid.myr b/test/matchvoid.myr
new file mode 100644
index 0000000..86a5b1b
--- /dev/null
+++ b/test/matchvoid.myr
@@ -0,0 +1,8 @@
+use std
+
+const main = {
+ match `std.Some void
+ | `std.Some void: std.put("ok\n")
+ | `std.None: std.put("nope\n")
+ ;;
+}