Bug 13730 – Scoped import of std.conv ruins functionality
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-11-13T13:09:00Z
Last change time
2014-12-14T06:06:25Z
Assigned to
nobody
Creator
czdanol
Comments
Comment #0 by czdanol — 2014-11-13T13:09:16Z
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
Comment #1 by yebblies — 2014-12-14T06:06:25Z
Yo, it's a duplicate.
*** This issue has been marked as a duplicate of issue 6185 ***