tccgissues.nim 224 B

123456789101112131415
  1. discard """
  2. output: '''
  3. @[1, 2, 3, 4]
  4. '''
  5. """
  6. # issue #10999
  7. proc varargsToSeq(vals: varargs[int32]): seq[int32] =
  8. result = newSeqOfCap[int32](vals.len)
  9. for v in vals:
  10. result.add v
  11. echo varargsToSeq(1, 2, 3, 4)