summaryrefslogtreecommitdiff
path: root/test/matchvoid.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-15 00:59:03 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-15 00:59:03 -0800
commita25778a74151e4bbf3abdd0aab1c37af24e19d05 (patch)
treee5157e8f355b75ee350b9f3ca6efe0e50ed2e048 /test/matchvoid.myr
parenta80975b0c347277095c091650daaa8a18ad67702 (diff)
downloadmc-a25778a74151e4bbf3abdd0aab1c37af24e19d05.tar.gz
Add matchvoid test code.
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")
+ ;;
+}