tnestedtemplate.nim 248 B

12345678910
  1. block: # issue #13979
  2. var s: seq[int]
  3. proc filterScanline[T](input: openArray[T]) =
  4. template currPix: untyped = input[i]
  5. for i in 0..<input.len:
  6. s.add currPix
  7. let pix = [1, 2, 3]
  8. filterScanline(pix)
  9. doAssert s == @[1, 2, 3]