summary refs log tree commit diff stats
path: root/tests/destructor/tcycle1.nim
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-04-26 15:04:52 +0800
committerGitHub <noreply@github.com>2021-04-26 09:04:52 +0200
commit68e522ececdb9f79371f4b60d1fbddcf01736050 (patch)
tree04ebe46e2413693be26d79cce10ceec6d80ae036 /tests/destructor/tcycle1.nim
parent9e6f2d7d186f760d8eb7dc26c863f23bd044b9c9 (diff)
downloadNim-68e522ececdb9f79371f4b60d1fbddcf01736050.tar.gz
Remove confusing <//> (#17830)
Diffstat (limited to 'tests/destructor/tcycle1.nim')
0 files changed, 0 insertions, 0 deletions












                         


                 
                   
discard """
  output: '''@[5, 5, 5, 5, 5]'''
"""

# bug #1832

var s = @[5]

# Works fine:
let x = s[s.high]
s.add x

# Causes the 0 to appear:
s.add s[s.high]

s.add s[s.len-1]
s.add s[s.xlen-1]

echo s # @[5, 5, 0]