diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-01-16 13:56:44 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-01-16 13:56:44 +0000 |
commit | ac71ece6738b14019d0512b4d93394cea2ab924d (patch) | |
tree | 2f8e1f770684ab8895fd38e000bda49fac0b15f4 /tests/closure | |
parent | bc65a7c76b627beef294e87bc1b1db540e4ee610 (diff) | |
download | Nim-ac71ece6738b14019d0512b4d93394cea2ab924d.tar.gz |
Added test for #1911.
Diffstat (limited to 'tests/closure')
-rw-r--r-- | tests/closure/tissue1911.nim | 7 |
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 |