Files
Nim/tests/arc/t19231.nim
ringabout 3e2b30879c fixes #19231; newFinalize doesn't work with ORC (#20291)
* fixes #19231; newFinalize doesn't work with ORC

first make it pass tests

* remove the tables dep

creates a binding for finalized procs in order to handle the same symbols. It used to wrongly generat a new symbol id for the same symbol as the encountered one before

* refactor and revert #14257

* de indentation

* fixes tests; uses instantiated types
2022-10-05 10:35:40 +02:00

19 lines
251 B
Nim

discard """
matrix: "--mm:orc"
targets: "c cpp"
"""
type
Game* = ref object
proc free*(game: Game) =
var mixNumOpened:cint = 0
for i in 0..<mixNumOpened:
mixNumOpened -= 1
proc newGame*(): Game =
new result, free
var
game*: Game