fork download
  1. proc toString(x: int): string = discard
  2. proc toString(x: bool): string =
  3. if x: result = "true"
  4. else: result = "false"
  5.  
  6. echo toString(13) # calls the toString(x: int) proc
  7. echo toString(true) # calls the toString(x: bool) proc
Success #stdin #stdout 0s 2432KB
stdin
Standard input is empty
stdout
nil
true