summary refs log tree commit diff stats
path: root/tests/overload
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-04-29 13:30:08 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-05-07 09:37:49 +0200
commitb0d85b0adf950685e2f7d88665a3d5b03cd06cfd (patch)
treeb258bc6351df24760843243061af02e6afabb1c7 /tests/overload
parente678a4285df6e567c5e924bfae941ae6b312790d (diff)
downloadNim-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.nim5
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