tnewseq_on_result_vart.nim 175 B

12345678910
  1. discard """
  2. errormsg: "address of 'result' may not escape its stack frame"
  3. line: 9
  4. """
  5. # bug #5113
  6. proc makeSeqVar(size: Natural): var seq[int] =
  7. newSeq(result, size)