diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-26 14:36:46 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-26 14:36:46 +0200 |
commit | 98859a72486038995f66d499f76172bb6e670a22 (patch) | |
tree | 6e23973543a4402bf73d5dd8c363d68ff824e304 /tests/template/ttemp_in_varargs.nim | |
parent | 1d1253c87f2cba4e498db48d16cbe88fb0d8850b (diff) | |
download | Nim-98859a72486038995f66d499f76172bb6e670a22.tar.gz |
fixes #4292
Diffstat (limited to 'tests/template/ttemp_in_varargs.nim')
-rw-r--r-- | tests/template/ttemp_in_varargs.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/template/ttemp_in_varargs.nim b/tests/template/ttemp_in_varargs.nim new file mode 100644 index 000000000..be78e6ef2 --- /dev/null +++ b/tests/template/ttemp_in_varargs.nim @@ -0,0 +1,9 @@ +discard """ + output: '''a''' +""" + +# bug #4292 + +template foo(s: string): string = s +proc variadicProc*(v: varargs[string, foo]) = echo v[0] +variadicProc("a") |