fixes #2233
This commit is contained in:
parent
4cb9fba335
commit
2808b7f9a5
2 changed files with 88 additions and 68 deletions
8
tests/ccgbugs/trecursive_closure.nim
Normal file
8
tests/ccgbugs/trecursive_closure.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# bug #2233
|
||||
type MalType = object
|
||||
fun: proc: MalType
|
||||
|
||||
proc f(x: proc: MalType) =
|
||||
discard x()
|
||||
|
||||
f(nil)
|
||||
Loading…
Add table
Add a link
Reference in a new issue