summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-08-26 02:52:47 +0200
committerAraq <rumpf_a@web.de>2012-08-26 02:52:47 +0200
commit08d0003ed0cd4493df2486e6a1c62d7b547c735f (patch)
tree51a3421a51f672b4548e427aa63033077923a7d2
parentb5b5e6e76df228f573ae86780c66889f4b426301 (diff)
downloadNim-08d0003ed0cd4493df2486e6a1c62d7b547c735f.tar.gz
thygienictempl added
-rw-r--r--tests/compile/thygienictempl.nim10
1 files changed, 10 insertions, 0 deletions
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()