summary refs log blame commit diff stats
path: root/tests/converter/texplicit_conversion.nim
blob: e36d78ad5ca90c714c494f217c0d04dd5b8a3799 (plain) (tree)
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

block: # Test for nkconv
  proc foo(o: var int) =
    assert o == 0
  var a = 0
  foo(int(a))