fixes #4432
This commit is contained in:
parent
ce91a1b25d
commit
1ddd2a3865
2 changed files with 17 additions and 6 deletions
13
tests/converter/texplicit_conversion.nim
Normal file
13
tests/converter/texplicit_conversion.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
output: "234"
|
||||
"""
|
||||
|
||||
# bug #4461
|
||||
|
||||
import strutils
|
||||
|
||||
converter toInt(s: string): int =
|
||||
result = parseInt(s)
|
||||
|
||||
let x = (int)"234"
|
||||
echo x
|
||||
Loading…
Add table
Add a link
Reference in a new issue