From 08d0003ed0cd4493df2486e6a1c62d7b547c735f Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 26 Aug 2012 02:52:47 +0200 Subject: [PATCH] thygienictempl added --- tests/compile/thygienictempl.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/compile/thygienictempl.nim diff --git a/tests/compile/thygienictempl.nim b/tests/compile/thygienictempl.nim new file mode 100644 index 000000000..98983dc55 --- /dev/null +++ b/tests/compile/thygienictempl.nim @@ -0,0 +1,10 @@ + +var + e = "abc" + +raise newException(EIO, e & "ha!") + +template t() = echo(foo) + +var foo = 12 +t()