fixes tproctypecache_falsepositive.nim test case

This commit is contained in:
Araq 2017-06-08 18:35:37 +02:00
commit 4033929127
4 changed files with 28 additions and 3 deletions

View file

@ -0,0 +1,17 @@
import asyncdispatch
type
Callback = proc() {.closure, gcsafe.}
GameState = ref object
playerChangeHandlers: seq[Callback]
#proc dummy() =
# var x = newSeq[proc() {.cdecl, gcsafe.}]()
proc newGameState(): GameState =
result = GameState(
playerChangeHandlers: newSeq[Callback]() # this fails
)
#dummy()