http://dpaste.dzfl.pl/0c923861

class A
{
    double x;
    @property double X() { return x; }
    @property double X(double v) { return x = v; }
    alias X this;
}

class B
{
    A a;
    @property A Y() { return a; }
    @property A Y(A v) { return a = v; }
}


void main()
{
        B b = new B();
        b.Y = 3;
}

error not a property of b.Y



adding refs to the returns of the getters allows the code to work but only getters are called(hence the need for refs).

Please allow alias this to work with overloaded functions. (specifically properties, b.Y = 3; is not b.Y() = 3 but b.Y(3);)

Reply via email to