tnamedparamoverloading.nim 161 B

1234567891011121314
  1. discard """
  2. output: '''
  3. Using x: 2
  4. Using y: 2
  5. '''
  6. """
  7. proc foo(x: int) =
  8. echo "Using x: ", x
  9. proc foo(y: int) =
  10. echo "Using y: ", y
  11. foo(x = 2)
  12. foo(y = 2)