summary refs log tree commit diff stats
path: root/tests/ccgbugs
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-07-22 19:47:20 +0200
committerAraq <rumpf_a@web.de>2015-07-24 01:04:40 +0200
commitd82d430cbe304e891228b65bbfcedf8219c70a33 (patch)
treeb885550a6d19442fe5be97df031b92e8059eb002 /tests/ccgbugs
parentcd42d38887d6c15be42c79b51d86e172f271d5f7 (diff)
downloadNim-d82d430cbe304e891228b65bbfcedf8219c70a33.tar.gz
fixes #2823
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r--tests/ccgbugs/trecursive_closure.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ccgbugs/trecursive_closure.nim b/tests/ccgbugs/trecursive_closure.nim
index 50c363a4a..f64382a8c 100644
--- a/tests/ccgbugs/trecursive_closure.nim
+++ b/tests/ccgbugs/trecursive_closure.nim
@@ -6,3 +6,9 @@ proc f(x: proc: MalType) =
   discard x()
 
 f(nil)
+
+# bug #2823
+
+type A = object #of RootObj <-- Uncomment this to get no errors
+  test: proc(i: A): bool
+var a: proc(i: A): bool # Or comment this line to get no errors