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:02:25 +0000
committerDominik Picheta <dominikpicheta@gmail.com>2016-01-16 14:02:25 +0000
commitabc72eb9195929ad9837783d0b450ce2da52e3d1 (patch)
tree005db4fd6c00ca70792015d254b5d8529e79db8e /tests/closure
parent19ea2672c545288c8cf4b4bd925ed3fd3bdd88b2 (diff)
downloadNim-abc72eb9195929ad9837783d0b450ce2da52e3d1.tar.gz
Added test for #1642.
Diffstat (limited to 'tests/closure')
-rw-r--r--tests/closure/tissue1642.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/closure/tissue1642.nim b/tests/closure/tissue1642.nim
new file mode 100644
index 000000000..5b921fc05
--- /dev/null
+++ b/tests/closure/tissue1642.nim
@@ -0,0 +1,3 @@
+block:
+    var i = 0
+    proc p() = inc(i)
\ No newline at end of file