fixes #1796
This commit is contained in:
parent
e751a0af57
commit
7524610b31
5 changed files with 66 additions and 11 deletions
|
|
@ -7,7 +7,7 @@ from strutils import join
|
|||
type
|
||||
TFoo * = object
|
||||
id: int
|
||||
func: proc(){.closure.}
|
||||
fn: proc(){.closure.}
|
||||
var foo_counter = 0
|
||||
var alive_foos = newseq[int](0)
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ for i in 0 .. <10:
|
|||
|
||||
for i in 0 .. <10:
|
||||
let f = newFoo()
|
||||
f.func = proc =
|
||||
f.fn = proc =
|
||||
echo f.id
|
||||
|
||||
GC_fullcollect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue