shithub: mc

Download patch

ref: 7f63840cfaa3640e76d6ac0688a19ba52a68764a
parent: 4f1a566d65a2a1c91c18dbd96f5cba69b80d8008
author: Ori Bernstein <[email protected]>
date: Fri Jun 29 09:14:52 EDT 2012

Add test for type checking match types.

--- /dev/null
+++ b/test/match-badtypes.myr
@@ -1,0 +1,8 @@
+const foo = {
+	match 123
+	"asdf":	123
+		;;
+	234:	888
+		;;
+	;;
+}
--- a/test/tests
+++ b/test/tests
@@ -47,3 +47,4 @@
 F occur
 F union-extraarg
 F union-missingarg
+F match-badtypes