t21439.nim 146 B

123456789101112
  1. proc test(a: openArray[string]): proc =
  2. let a = @a
  3. result = proc =
  4. for i in a:
  5. discard i
  6. const a = ["t1", "t2"]
  7. discard test(a)