fixes #13519
This commit is contained in:
parent
b0684ec425
commit
861a5340fe
7 changed files with 37 additions and 7 deletions
21
tests/generics/tarc_misc.nim
Normal file
21
tests/generics/tarc_misc.nim
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
discard """
|
||||
output: ''''''
|
||||
cmd: "nim c --gc:arc $file"
|
||||
"""
|
||||
|
||||
# bug #13519
|
||||
|
||||
var unrelated: seq[proc() {.closure, gcsafe.}]
|
||||
|
||||
unrelated.add proc () =
|
||||
echo "gcsafe"
|
||||
|
||||
import tables, sequtils
|
||||
let t = newTable[int, proc()]()
|
||||
|
||||
type
|
||||
MyProc = proc() {.closure.}
|
||||
|
||||
var result: seq[MyProc] = @[]
|
||||
for x in t.values:
|
||||
result.add(x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue