mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 01:51:43 +00:00
Backwards-compatible support for keyword arguments in the command syntax
This commit is contained in:
committed by
Andreas Rumpf
parent
e678a4285d
commit
b0d85b0adf
@@ -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, y = "test 3")
|
||||
templateForwarding(hasKeywordArgs, true, y = "test 4", x = 4)
|
||||
templateForwarding hasKeywordArgs, true, 2, "test 2"
|
||||
|
||||
templateForwarding(hasKeywordArgs, true, y = "test 3")
|
||||
templateForwarding hasKeywordArgs, true, y = "test 4", x = 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user