summary refs log tree commit diff stats
path: root/tests/closure
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2016-01-16 14:29:48 +0000
committerDominik Picheta <dominikpicheta@gmail.com>2016-01-16 14:29:48 +0000
commitd0d1b396ed8a61cf6c13df26e3b8d43741033cf9 (patch)
tree72219624ff16a8b6165862f21acdde608ae7b695 /tests/closure
parenta395182dd7577ffa099b351ff7adfd3bb6939d54 (diff)
downloadNim-d0d1b396ed8a61cf6c13df26e3b8d43741033cf9.tar.gz
Added test for #600.
Diffstat (limited to 'tests/closure')
-rw-r--r--tests/closure/tissue600.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/closure/tissue600.nim b/tests/closure/tissue600.nim
new file mode 100644
index 000000000..eacc7a123
--- /dev/null
+++ b/tests/closure/tissue600.nim
@@ -0,0 +1,4 @@
+for i in 1..1:
+  var reported = false
+  proc report() =
+    reported = true
\ No newline at end of file