ref: e249c8a903e8a01bf59550aeb95a55ba216256b6
parent: 2c8a0da890220d21e84f79b5d70c36e0434081fb
author: Ori Bernstein <[email protected]>
date: Mon Oct 21 08:51:17 EDT 2013
Add test for mixed type matches.
--- /dev/null
+++ b/test/matchmixed.myr
@@ -1,0 +1,14 @@
+use std
+
+type u = union
+ `A
+ `B
+;;
+
+const main = {
+ match "asdf"
+ `A: std.put("Got a\n");;
+ `B: std.put("Got b\n");;
+ ;;
+ -> 42
+}