summaryrefslogtreecommitdiff
path: root/test/matcharray.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/matcharray.myr')
-rw-r--r--test/matcharray.myr13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/matcharray.myr b/test/matcharray.myr
new file mode 100644
index 0000000..67e8efe
--- /dev/null
+++ b/test/matcharray.myr
@@ -0,0 +1,13 @@
+use std
+
+const main = {
+ var v = [2, 40, 10]
+
+ match v
+ [x, y, 10]:
+ -> x + y
+ ;;
+ _: std.die("Wat");;
+ ;;
+ -> 0
+}