summaryrefslogtreecommitdiff
path: root/test/matchtup.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-10-21 12:50:48 -0400
committerOri Bernstein <ori@eigenstate.org>2013-10-21 12:50:48 -0400
commit2c8a0da890220d21e84f79b5d70c36e0434081fb (patch)
treea952c3f60cdf1722bc5bc57ecc7dbb6a1f943410 /test/matchtup.myr
parent61cf50b02a74978462bfed648f8811700acf53ed (diff)
downloadmc-2c8a0da890220d21e84f79b5d70c36e0434081fb.tar.gz
Add missing test file
Diffstat (limited to 'test/matchtup.myr')
-rw-r--r--test/matchtup.myr11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/matchtup.myr b/test/matchtup.myr
new file mode 100644
index 0000000..9515de9
--- /dev/null
+++ b/test/matchtup.myr
@@ -0,0 +1,11 @@
+use std
+
+const main = {
+ var v = (1, 2)
+
+ match v
+ (1, x): -> 40 + x;;
+ _: std.die("Wat");;
+ ;;
+ -> 0
+}