summary refs log tree commit diff stats
path: root/tests/seq/tshallowseq.nim
blob: 9a8bdb954fd92a0b788605c53a4f795e1c6bef58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-l
discard """
  output: '''@[1, 42, 3]
@[1, 42, 3]
'''
"""
proc xxx() =
  var x: seq[int] = @[1, 2, 3]
  var y:
pan class="w"> x) y[1] = 42 echo y echo x xxx()