summary refs log blame commit diff stats
path: root/tests/template/tit.nim
blob: 9866711de75902cd977641d9867a3a9f4f7afbbb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                      
# bug #1337

template someIt(a, pred: expr): expr =
  var it {.inject.} = 0
  pred

proc aProc(n) =
  n.someIt(echo(it))

aProc(89)