summary refs log tree commit diff stats
path: root/tests/assign/tgenericassigntuples.nim
blob: cca244577a5a7465520387ff7eb47ce1d6dd84c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  output: '''abc232'''
"""

var t, s: tuple[x: string, c: int]

proc ugh: seq[tuple[x: string, c: int]] =
  result = @[("abc", 232)]

t = ugh()[0]
s = t
s = ugh()[0]

echo s[0], t[1]