Nim/tests/run/tgenericassigntuples.nim
2011-11-19 15:45:51 +01:00

16 lines
198 B
Nim
Executable file

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]