summary refs log tree commit diff stats
path: root/tests/template/tit.nim
blob: cf50d2f6fb7bf130499f606574e8af415f93cdda (plain) (blame)
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: auto) =
  n.someIt(echo(it))

aProc(89)