From 0761b449edebe3263174a84ebcbef35dc5a4fac0 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 18 Mar 2013 00:22:21 +0100 Subject: fixes #304 --- tests/compile/thygienictempl.nim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/compile/thygienictempl.nim') diff --git a/tests/compile/thygienictempl.nim b/tests/compile/thygienictempl.nim index 98983dc55..3cdbac40e 100644 --- a/tests/compile/thygienictempl.nim +++ b/tests/compile/thygienictempl.nim @@ -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) -- cgit 1.4.1-2-gfad0