From 2808b7f9a5724c59cea012b7de3215a7dd60177a Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 28 Feb 2015 23:37:38 +0100 Subject: fixes #2233 --- tests/ccgbugs/trecursive_closure.nim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/ccgbugs/trecursive_closure.nim (limited to 'tests') 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) -- cgit 1.4.1-2-gfad0