summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-20 13:12:47 +0100
committerGitHub <noreply@github.com>2018-11-20 13:12:47 +0100
commit39ad3a0da69908ab937ea2156f06f4d3bbd0b2b7 (patch)
tree6d7d40a6a29dba52d65330b419ae07cbdab052a3 /tests
parentd146516008973232b690c977b238af487a809541 (diff)
downloadNim-39ad3a0da69908ab937ea2156f06f4d3bbd0b2b7.tar.gz
fix #9726 (#9765)
Diffstat (limited to 'tests')
-rw-r--r--tests/discard/tdiscardable.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/discard/tdiscardable.nim b/tests/discard/tdiscardable.nim
index f979b29c9..99144e324 100644
--- a/tests/discard/tdiscardable.nim
+++ b/tests/discard/tdiscardable.nim
@@ -27,3 +27,11 @@ proc bar(b: int):int =
 
 echo foo(0)
 echo bar(0)
+
+# bug #9726
+
+proc foo: (proc: int) =
+  proc bar: int = 1
+  return bar
+
+discard foo()