shithub: mc

Download patch

ref: a25778a74151e4bbf3abdd0aab1c37af24e19d05
parent: a80975b0c347277095c091650daaa8a18ad67702
author: Ori Bernstein <[email protected]>
date: Mon Dec 14 19:59:03 EST 2015

Add matchvoid test code.

--- /dev/null
+++ b/test/matchvoid.myr
@@ -1,0 +1,8 @@
+use std
+
+const main = {
+	match `std.Some void
+	| `std.Some void:	std.put("ok\n")
+	| `std.None:	std.put("nope\n")
+	;;
+}
--- a/test/tests
+++ b/test/tests
@@ -106,7 +106,7 @@
 B matchstruct	E	42
 B matcharray	E	42
 B matchargunion	E	69
-B matchvoid	E	'ok'
+B matchvoid	P	'ok'
 B matchexhaust	P	worked
 B matchargstr	C
 B matchunion_sl	P	foo