summary refs log tree commit diff stats
path: root/tests/vm/tsimpleglobals.nim
blob: 27bfdce502cc0480150155eeff1a2cf958272c54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  msg: "abc xyz bb"
"""

# bug #2473
type
  Test = tuple[a,b: string]

static:
  var s:seq[Test] = @[(a:"a", b:"b")]
  s[0] = (a:"aa", b:"bb")

  var x: Test
  x.a = "abc"
  x.b = "xyz"
  echo x.a, " ", x.b, " ", s[0].b