texplicit_conversion.nim 147 B

1234567891011121314
  1. discard """
  2. output: "234"
  3. """
  4. # bug #4432
  5. import strutils
  6. converter toInt(s: string): int =
  7. result = parseInt(s)
  8. let x = (int)"234"
  9. echo x