fixes tproctypecache_falsepositive.nim test case
This commit is contained in:
parent
82effc581d
commit
4033929127
4 changed files with 28 additions and 3 deletions
17
tests/generics/tproctypecache_falsepositive.nim
Normal file
17
tests/generics/tproctypecache_falsepositive.nim
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue