Code: ------ import std.conv; void main() { int i = "@12".to!int; } ------ Output: ------ Unexpected '1' when converting from type string to type int ------ The error message should be pointing to '@' as the unexpected character, not '1'.
https://github.com/D-Programming-Language/phobos/pull/4008
And the forum thread: http://forum.dlang.org/thread/iefucpjgreyvloqegkfm@forum.dlang.org
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/b57a61f45f90ed4724939a7f1f9e4eab0d3c3857 Merge pull request #4008 from quickfur/conv_errmsg Issue 15695: wrong error message in failed conversion from string to int
Apparently this was a duplicate of https://issues.dlang.org/show_bug.cgi?id=15215