fixes #304
This commit is contained in:
parent
65319ba22d
commit
0761b449ed
3 changed files with 50 additions and 25 deletions
|
|
@ -8,3 +8,11 @@ template t() = echo(foo)
|
|||
|
||||
var foo = 12
|
||||
t()
|
||||
|
||||
|
||||
template test_in(a, b, c: expr): bool {.immediate, dirty.} =
|
||||
var result {.gensym.}: bool = false
|
||||
false
|
||||
|
||||
when isMainModule:
|
||||
assert test_in(ret2, "test", str_val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue