summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-01-08 01:29:10 +0100
committerAraq <rumpf_a@web.de>2012-01-08 01:29:10 +0100
commit2ae78c0cfbdcc1a77d6536f360e20c67083da0c7 (patch)
tree1372102e69089aa1a696477ef9fa25fa65096f1c /tests/compile
parent7f3b3298b4dc2be10febebc383f42187f968135e (diff)
downloadNim-2ae78c0cfbdcc1a77d6536f360e20c67083da0c7.tar.gz
implicit invokation of items/pairs iterators
Diffstat (limited to 'tests/compile')
-rw-r--r--tests/compile/timplicititems.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/compile/timplicititems.nim b/tests/compile/timplicititems.nim
new file mode 100644
index 000000000..dbe321cb6
--- /dev/null
+++ b/tests/compile/timplicititems.nim
@@ -0,0 +1,4 @@
+
+for x in [1, 2, 3, 4]:
+  echo x
+