summary refs log blame commit diff stats
path: root/tests/assign/tgenericassigntuples.nim
blob: cca244577a5a7465520387ff7eb47ce1d6dd84c7 (plain) (tree)
1
2
3
4
5
6
7





                                  
                                         








                          
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]