We all know that public, selective and static imports are broken (http://d.puremagic.com/issues/show_bug.cgi?id=314) Also private imports are broken in some special cases: http://d.puremagic.com/issues/show_bug.cgi?id=313 & http://d.puremagic.com/issues/show_bug.cgi?id=1161

But apart from that it seemed to work so far.

Yet this works perfectly:

module testb;
Bla foo()
{
        return Bla();
}

private struct Bla
{
        void arg() {}
}

module test;
import testb;

void main()
{
        foo().arg(); // I think this could be allowed
        auto b = Bla(); // but this really shouldn't
}

Reply via email to