diff options
Diffstat (limited to 'tests/ccgbugs/trecursive_closure.nim')
-rw-r--r-- | tests/ccgbugs/trecursive_closure.nim | 6 |
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 |