fixes #1337
This commit is contained in:
parent
83c655266d
commit
e1630dcc73
3 changed files with 33 additions and 83 deletions
11
tests/template/tit.nim
Normal file
11
tests/template/tit.nim
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue