diff options
author | Araq <rumpf_a@web.de> | 2012-05-04 01:58:54 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-05-04 01:58:54 +0200 |
commit | a41bf611a02858843d4e083246fd2c5028638452 (patch) | |
tree | 479848282174638b643b617a9fe8d1a2dd46f861 /tests/compile | |
parent | 28b68d914ecef78ecf8e5068583b8ed3f5e7a302 (diff) | |
download | Nim-a41bf611a02858843d4e083246fd2c5028638452.tar.gz |
fixes binding of overloaded procs
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/tbindoverload.nim | 12 |
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() |