summaryrefslogtreecommitdiff
path: root/test/stdopt-some.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-09-23 17:24:54 -0400
committerOri Bernstein <ori@eigenstate.org>2013-09-23 17:24:54 -0400
commitb79e739ffcf4a2d7c6c177a257c63a24c7bc844f (patch)
tree5408551b82ddbf1c0acbf86167f43adf5c0020fc /test/stdopt-some.myr
parent4c4a81a00c9265c4279f9442564c37f30df3fd63 (diff)
downloadmc-b79e739ffcf4a2d7c6c177a257c63a24c7bc844f.tar.gz
Some renaming and test addition.
Diffstat (limited to 'test/stdopt-some.myr')
-rw-r--r--test/stdopt-some.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/stdopt-some.myr b/test/stdopt-some.myr
new file mode 100644
index 0000000..78a9fe4
--- /dev/null
+++ b/test/stdopt-some.myr
@@ -0,0 +1,9 @@
+use std
+
+const main = {
+ match `std.Some 42
+ `std.Some x: -> x;;
+ `std.None: -> 1;;
+ ;;
+}
+