summary refs log blame commit diff stats
path: root/tests/overload/tnamedparamoverloading.nim
blob: a7c37ba5238d367f1f4149948f479ad2d70db8eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)