summaryrefslogtreecommitdiff
path: root/test/destructuretup.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/destructuretup.myr')
-rw-r--r--test/destructuretup.myr7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/destructuretup.myr b/test/destructuretup.myr
new file mode 100644
index 0000000..a6da2b4
--- /dev/null
+++ b/test/destructuretup.myr
@@ -0,0 +1,7 @@
+use std
+
+const main = {
+ var a,b
+ ((a, b), _) = ((1, 2), 3)
+ std.assert(a+b == 3, "fail\n")
+}