This commit is contained in:
Araq 2014-11-23 01:45:53 +01:00
commit e1630dcc73
3 changed files with 33 additions and 83 deletions

11
tests/template/tit.nim Normal file
View file

@ -0,0 +1,11 @@
# bug #1337
template someIt(a, pred: expr): expr =
var it {.inject.} = 0
pred
proc aProc(n) =
n.someIt(echo(it))
aProc(89)