summary refs log tree commit diff stats
path: root/tests/assign/tgenericassigntuples.nim
blob: 6dd63a9844eaaefdca72681c5db12df90122554f (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]