summary refs log tree commit diff stats
path: root/tests/converter/texplicit_conversion.nim
blob: 6b2e96faf10199892f92059a510df17d4e2120bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
  output: "234"
"""

# bug #4432

import strutils

converter toInt(s: string): int =
  result = parseInt(s)

let x = (int)"234"
echo x