summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-28 23:37:38 +0100
committerAraq <rumpf_a@web.de>2015-02-28 23:53:52 +0100
commit2808b7f9a5724c59cea012b7de3215a7dd60177a (patch)
treeb51d9353372f7890f71f44c9a2f49750a2aa3930 /tests
parent4cb9fba335f51c92e724ff5208eb60ad5ea24b7e (diff)
downloadNim-2808b7f9a5724c59cea012b7de3215a7dd60177a.tar.gz
fixes #2233
Diffstat (limited to 'tests')
-rw-r--r--tests/ccgbugs/trecursive_closure.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ccgbugs/trecursive_closure.nim b/tests/ccgbugs/trecursive_closure.nim
new file mode 100644
index 000000000..50c363a4a
--- /dev/null
+++ b/tests/ccgbugs/trecursive_closure.nim
@@ -0,0 +1,8 @@
+# bug #2233
+type MalType = object
+  fun: proc: MalType
+
+proc f(x: proc: MalType) =
+  discard x()
+
+f(nil)