summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-05-04 01:58:54 +0200
committerAraq <rumpf_a@web.de>2012-05-04 01:58:54 +0200
commita41bf611a02858843d4e083246fd2c5028638452 (patch)
tree479848282174638b643b617a9fe8d1a2dd46f861 /tests/compile
parent28b68d914ecef78ecf8e5068583b8ed3f5e7a302 (diff)
downloadNim-a41bf611a02858843d4e083246fd2c5028638452.tar.gz
fixes binding of overloaded procs
Diffstat (limited to 'tests/compile')
-rw-r--r--tests/compile/tbindoverload.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/compile/tbindoverload.nim b/tests/compile/tbindoverload.nim
new file mode 100644
index 000000000..6f5bb339e
--- /dev/null
+++ b/tests/compile/tbindoverload.nim
@@ -0,0 +1,12 @@
+import strtabs
+
+template t*() =
+  block:
+    bind newStringTable
+    discard {"Content-Type": "text/html"}.newStringTable()
+
+    discard {:}.newStringTable
+
+#discard {"Content-Type": "text/html"}.newStringTable()
+
+t()