summaryrefslogtreecommitdiff
path: root/test/subrangefor.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/subrangefor.myr')
-rw-r--r--test/subrangefor.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/subrangefor.myr b/test/subrangefor.myr
new file mode 100644
index 0000000..0a3acc4
--- /dev/null
+++ b/test/subrangefor.myr
@@ -0,0 +1,8 @@
+use std
+
+const main = {
+ for i in [1,2,3,4][:2]
+ std.put("%i", i)
+ ;;
+ std.put("\n")
+}