Co-authored-by: cooldome <ariabushenko@bk.ru>
This commit is contained in:
cooldome 2020-05-13 22:57:05 +01:00 • committed by GitHub
commit 5fb40af57e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 5 deletions

View file

@ -3,6 +3,7 @@ discard """
123xyzabc
destroyed: false
destroyed: false
1
closed
destroying variable
'''
@ -118,4 +119,19 @@ proc free*(game: Game) =
proc newGame*(): Game =
new(result, free)
var game*: Game
var game*: Game
#------------------------------------------------------------------------------
# issue #14333
type
SimpleLoop = object
Lsg = object
loops: seq[ref SimpleLoop]
root: ref SimpleLoop
var lsg: Lsg
lsg.loops.add lsg.root
echo lsg.loops.len