diff options
author | Zahary Karadjov <zahary@gmail.com> | 2018-04-29 13:30:08 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-07 09:37:49 +0200 |
commit | b0d85b0adf950685e2f7d88665a3d5b03cd06cfd (patch) | |
tree | b258bc6351df24760843243061af02e6afabb1c7 /tests/overload | |
parent | e678a4285df6e567c5e924bfae941ae6b312790d (diff) | |
download | Nim-b0d85b0adf950685e2f7d88665a3d5b03cd06cfd.tar.gz |
Backwards-compatible support for keyword arguments in the command syntax
Diffstat (limited to 'tests/overload')
-rw-r--r-- | tests/overload/tparam_forwarding.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/overload/tparam_forwarding.nim b/tests/overload/tparam_forwarding.nim index cd3de32e3..b0eea42c7 100644 --- a/tests/overload/tparam_forwarding.nim +++ b/tests/overload/tparam_forwarding.nim @@ -46,7 +46,8 @@ proc hasRegularArgs(x: int, y: string) = echo "x: ", x, ", y: ", y templateForwarding(hasRegularArgs, true, 1, "test 1") -templateForwarding(hasKeywordArgs, true, 2, "test 2") +templateForwarding hasKeywordArgs, true, 2, "test 2" + templateForwarding(hasKeywordArgs, true, y = "test 3") -templateForwarding(hasKeywordArgs, true, y = "test 4", x = 4) +templateForwarding hasKeywordArgs, true, y = "test 4", x = 4 |