November 13, 2014 [Issue 13730] New: Scoped import of std.conv ruins functionality | ||||
---|---|---|---|---|
| ||||
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 -- |
Copyright © 1999-2021 by the D Language Foundation