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: [email protected]
Reporter: [email protected]
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
--