summary refs log tree commit diff stats
path: root/tests/arc/tarcmisc.nim
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2020-05-13 22:57:05 +0100
committerGitHub <noreply@github.com>2020-05-13 23:57:05 +0200
commit5fb40af57ef66618d2003dae1091d80e8f026a1c (patch)
treeabe081bccfcdd38ed60bfdb3dc5272174f715876 /tests/arc/tarcmisc.nim
parent82870e0737678256c83f8fc0f2d92293f9f214fe (diff)
downloadNim-5fb40af57ef66618d2003dae1091d80e8f026a1c.tar.gz
fix #14333 (#14336)
Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'tests/arc/tarcmisc.nim')
-rw-r--r--tests/arc/tarcmisc.nim18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim
index 79c947e82..24f02959c 100644
--- a/tests/arc/tarcmisc.nim
+++ b/tests/arc/tarcmisc.nim
@@ -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
\ No newline at end of file
+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
\ No newline at end of file