parent
0880f118d3
commit
f50377986a
3 changed files with 198 additions and 171 deletions
14
tests/overload/tnamedparamoverloading.nim
Normal file
14
tests/overload/tnamedparamoverloading.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
output: '''
|
||||
Using x: 2
|
||||
Using y: 2
|
||||
'''
|
||||
"""
|
||||
|
||||
proc foo(x: int) =
|
||||
echo "Using x: ", x
|
||||
proc foo(y: int) =
|
||||
echo "Using y: ", y
|
||||
|
||||
foo(x = 2)
|
||||
foo(y = 2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue