summary refs log tree commit diff stats
path: root/tests/closure
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2016-01-16 13:56:44 +0000
committerDominik Picheta <dominikpicheta@gmail.com>2016-01-16 13:56:44 +0000
commitac71ece6738b14019d0512b4d93394cea2ab924d (patch)
tree2f8e1f770684ab8895fd38e000bda49fac0b15f4 /tests/closure
parentbc65a7c76b627beef294e87bc1b1db540e4ee610 (diff)
downloadNim-ac71ece6738b14019d0512b4d93394cea2ab924d.tar.gz
Added test for #1911.
Diffstat (limited to 'tests/closure')
-rw-r--r--tests/closure/tissue1911.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/closure/tissue1911.nim b/tests/closure/tissue1911.nim
new file mode 100644
index 000000000..311d99134
--- /dev/null
+++ b/tests/closure/tissue1911.nim
@@ -0,0 +1,7 @@
+proc foo(x: int) : auto =
+
+  proc helper() : int = x
+  proc bar() : int = helper()
+  proc baz() : int = helper()
+
+  return (bar, baz)
\ No newline at end of file