digitalmars.D.bugs - [Issue 13730] New: Scoped import of std.conv ruins functionality
- via Digitalmars-d-bugs (27/27) Nov 13 2014 https://issues.dlang.org/show_bug.cgi?id=13730
https://issues.dlang.org/show_bug.cgi?id=13730 Issue ID: 13730 Summary: Scoped import of std.conv ruins functionality Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: czdanol gmail.com Yo, look at this code: class Test { private: import std.conv : to; public: string a() { return this.to!string(); } } IT DOESN'T WORK!!! And you should also add some check when doing .to!anything() (without any arguments) - it writes quite ugly error --
Nov 13 2014