summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-10-21 12:51:17 -0400
committerOri Bernstein <ori@eigenstate.org>2013-10-21 12:51:17 -0400
commite249c8a903e8a01bf59550aeb95a55ba216256b6 (patch)
tree299430cc27038258f8e62a607168ba9f2d5f0cf3
parent2c8a0da890220d21e84f79b5d70c36e0434081fb (diff)
downloadmc-e249c8a903e8a01bf59550aeb95a55ba216256b6.tar.gz
Add test for mixed type matches.
-rw-r--r--test/matchmixed.myr14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/matchmixed.myr b/test/matchmixed.myr
new file mode 100644
index 0000000..4ad57d6
--- /dev/null
+++ b/test/matchmixed.myr
@@ -0,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
+}