module base;

class Base
{
        import std.conv;
}

module derived;
import base;
import std.stdio;

string text = "123";

class Derived : Base
{
        static void foo()
        {
                writeln(text);
        }
}

void main()
{
        Derived.foo();
}

This prints an empty line!

My word, I think this example made me physically ill.

Reply via email to