diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-29 00:58:39 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-29 01:00:25 +0200 |
commit | 1ddd2a3865cbea7378a1f14575ea49766a54c0ab (patch) | |
tree | a20ec2028d71decdd9bf378cd40992c54d6ce136 /tests | |
parent | ce91a1b25db6e121cfe1f5ce3e5f4d61c80361e7 (diff) | |
download | Nim-1ddd2a3865cbea7378a1f14575ea49766a54c0ab.tar.gz |
fixes #4432
Diffstat (limited to 'tests')
-rw-r--r-- | tests/converter/texplicit_conversion.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/converter/texplicit_conversion.nim b/tests/converter/texplicit_conversion.nim new file mode 100644 index 000000000..16de62a57 --- /dev/null +++ b/tests/converter/texplicit_conversion.nim @@ -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 |